Class: RailsGitVersion::DescriptionController
- Inherits:
-
ApplicationController
- Object
- ActionController::Base
- ApplicationController
- RailsGitVersion::DescriptionController
- Defined in:
- app/controllers/rails_git_version/description_controller.rb
Instance Method Summary collapse
Instance Method Details
#index ⇒ Object
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 |