Module: Components::InstanceMethods

Defined in:
lib/six-updater-web/vendor/plugins/render_component/lib/components.rb

Instance Method Summary collapse

Instance Method Details

#process_with_components(request, response, method = :perform_action, *arguments) ⇒ Object

Extracts the action_name from the request parameters and performs that action.



39
40
41
42
# File 'lib/six-updater-web/vendor/plugins/render_component/lib/components.rb', line 39

def process_with_components(request, response, method = :perform_action, *arguments) #:nodoc:
  flash.discard if component_request?
  process_without_components(request, response, method, *arguments)
end

#send_response_with_render_componentObject



44
45
46
47
# File 'lib/six-updater-web/vendor/plugins/render_component/lib/components.rb', line 44

def send_response_with_render_component
  response.prepare! unless component_request?
  response
end