Class: SourceBrowser::ObjectsController
- Inherits:
-
ApplicationController
- Object
- ActionController::Base
- ApplicationController
- SourceBrowser::ObjectsController
- Defined in:
- app/controllers/source_browser/objects_controller.rb
Instance Method Summary collapse
Instance Method Details
#show ⇒ Object
3 4 5 6 7 |
# File 'app/controllers/source_browser/objects_controller.rb', line 3 def show @path = params[:id] @object = git.object(@path) render body: @object.contents end |