Class: Api::V2::TemplateInvocationsController
- Inherits:
-
BaseController
- Object
- BaseController
- Api::V2::TemplateInvocationsController
- Defined in:
- app/controllers/api/v2/template_invocations_controller.rb
Instance Method Summary collapse
Instance Method Details
#resource_scope ⇒ Object
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_invocations ⇒ Object
13 14 15 16 |
# File 'app/controllers/api/v2/template_invocations_controller.rb', line 13 def template_invocations @template_invocations = resource_scope.paginate() render :layout => 'api/v2/layouts/index_layout' end |