Why Gemfury? Push, build, and install  RubyGems npm packages Python packages Maven artifacts PHP packages Go Modules Debian packages RPM packages NuGet packages

Repository URL to install this package:

Details    
app_revision / app / controllers / app_revision / revisions_controller.rb
Size: Mime:
class AppRevision::RevisionsController < AppRevision::ApplicationController
  def show
    render :text => current_revision
  end

  protected

  def current_revision
    File.read(File.join(Rails.root, 'REVISION'))
  rescue Errno::ENOENT
    'UNKNOWN'
  end
end