Module: ActionController::Components::ClassMethods

Defined in:
lib/action_controller/components.rb

Instance Method Summary collapse

Instance Method Details

#process_with_components(request, response, parent_controller = nil) ⇒ Object

Track parent controller to identify component requests



58
59
60
61
62
# File 'lib/action_controller/components.rb', line 58

def process_with_components(request, response, parent_controller = nil) #:nodoc:
  controller = new
  controller.parent_controller = parent_controller
  controller.process(request, response)
end