Module: RenderComponent::Components::ClassMethods

Defined in:
lib/render_component/components.rb

Instance Method Summary collapse

Instance Method Details

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

Track parent controller to identify component requests



21
22
23
24
25
# File 'lib/render_component/components.rb', line 21

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