Class: CodeObjectsController

Inherits:
ApplicationController show all
Includes:
InchCI::Controller
Defined in:
app/controllers/code_objects_controller.rb

Instance Method Summary collapse

Methods included from InchCI::Controller

#expose

Instance Method Details

#showObject


6
7
8
9
10
11
12
# File 'app/controllers/code_objects_controller.rb', line 6

def show
  view = Action::CodeObject::Show.new(params)
  expose view
  if view.code_object.nil?
    render :text => "CodeObject not found.", :layout => true, :status => 404
  end
end