Class: RailsGitVersion::DescriptionController

Inherits:
ApplicationController show all
Defined in:
app/controllers/rails_git_version/description_controller.rb

Instance Method Summary collapse

Instance Method Details

#indexObject



5
6
7
8
9
# File 'app/controllers/rails_git_version/description_controller.rb', line 5

def index
  respond_with(@repo = RailsGitVersion.repo) do |format|
    format.text { render text: @repo.commits.first.id }
  end
end