Class: InspectorController

Inherits:
ApplicationController
  • Object
show all
Defined in:
app/controllers/inspector_controller.rb

Instance Method Summary collapse

Instance Method Details

#coderayObject



18
19
20
21
# File 'app/controllers/inspector_controller.rb', line 18

def coderay
  @graffity_template = Graffity::Template.where(:id => params[:id]).first
  render :coderay, :layout => false
end

#current_itemsObject



8
9
10
11
12
13
14
15
16
# File 'app/controllers/inspector_controller.rb', line 8

def current_items
  graffity_action = Graffity::Action.reverse_order(:start).first
  if graffity_action
    @title = "#{graffity_action.controller}##{graffity_action.name}"
    @graffity_template = Graffity::Template.where(:req_id => graffity_action.req_id, :partial => false).first
    @graffity_partials = Graffity::Template.where(:req_id => graffity_action.req_id, :partial => true)
  end
  render :current_items, :layout => false
end

#indexObject



5
6
# File 'app/controllers/inspector_controller.rb', line 5

def index
end