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



102
103
104
# File 'lib/objectify/rails/controller.rb', line 102

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



106
107
108
109
110
# File 'lib/objectify/rails/controller.rb', line 106

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

  execute_objectify_action
end

#action_nameObject



116
117
118
# File 'lib/objectify/rails/controller.rb', line 116

def action_name
  action.name
end

#controller_pathObject



112
113
114
# File 'lib/objectify/rails/controller.rb', line 112

def controller_path
  action.resource_name
end