Class: Api::V2::TemplateInvocationsController

Inherits:
BaseController
  • Object
show all
Defined in:
app/controllers/api/v2/template_invocations_controller.rb

Instance Method Summary collapse

Instance Method Details

#resource_scopeObject



18
19
20
21
22
23
24
# File 'app/controllers/api/v2/template_invocations_controller.rb', line 18

def resource_scope
  if params[:action] == 'template_invocations'
    resource_scope_for_template_invocations
  else
    super
  end
end

#template_invocationsObject



13
14
15
16
# File 'app/controllers/api/v2/template_invocations_controller.rb', line 13

def template_invocations
  @template_invocations = resource_scope.paginate(paginate_options)
  render :layout => 'api/v2/layouts/index_layout'
end