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
130 131 132 |
# File 'lib/objectify/rails/controller.rb', line 130 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
134 135 136 137 138 139 140 |
# File 'lib/objectify/rails/controller.rb', line 134 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
146 147 148 |
# File 'lib/objectify/rails/controller.rb', line 146 def action_name action.name end |
#controller_path ⇒ Object
142 143 144 |
# File 'lib/objectify/rails/controller.rb', line 142 def controller_path action.resource_name end |