Module: Objectify::Rails::LegacyControllerBehaviour

Includes:
Instrumentation, ControllerHelpers
Defined in:
lib/objectify/rails/controller.rb

Class Method Summary collapse

Instance Method Summary collapse

Class Method Details

.included(klass) ⇒ Object



104
105
106
# File 'lib/objectify/rails/controller.rb', line 104

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



108
109
110
111
112
# File 'lib/objectify/rails/controller.rb', line 108

def action_missing(name, *args, &block)
  instrument("start_processing.objectify", :route => objectify_route)

  execute_objectify_action
end

#action_nameObject



118
119
120
# File 'lib/objectify/rails/controller.rb', line 118

def action_name
  action.name
end

#controller_pathObject



114
115
116
# File 'lib/objectify/rails/controller.rb', line 114

def controller_path
  action.resource_name
end