Class: SourceBrowser::ObjectsController

Inherits:
ApplicationController show all
Defined in:
app/controllers/source_browser/objects_controller.rb

Instance Method Summary collapse

Instance Method Details

#showObject



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