Module: Objectify::Rails::ControllerBehaviour
- Includes:
- Instrumentation, ControllerHelpers
- Included in:
- ObjectifyController
- Defined in:
- lib/objectify/rails/controller.rb
Class Method Summary collapse
Instance Method Summary collapse
Class Method Details
.included(klass) ⇒ Object
132 133 134 |
# File 'lib/objectify/rails/controller.rb', line 132 def self.included(klass) klass.helper_method(:objectify_executor) if klass.respond_to?(:helper_method) end |
Instance Method Details
#action_missing(name, *args, &block) ⇒ Object
136 137 138 139 140 141 142 |
# File 'lib/objectify/rails/controller.rb', line 136 def action_missing(name, *args, &block) instrument("start_processing.objectify", :route => objectify_route) if execute_policy_chain execute_objectify_action end end |
#action_name ⇒ Object
148 149 150 |
# File 'lib/objectify/rails/controller.rb', line 148 def action_name action.name end |
#controller_path ⇒ Object
144 145 146 |
# File 'lib/objectify/rails/controller.rb', line 144 def controller_path action.resource_name end |