Module: ActionController::RackDelegation
- Extended by:
- ActiveSupport::Concern
- Included in:
- Caching, ConditionalGet, Cookies, Redirecting, Testing
- Defined in:
- lib/action_controller/metal/rack_delegation.rb
Instance Method Summary collapse
- #dispatch(action, request, response = ActionDispatch::Response.new) ⇒ Object
- #reset_session ⇒ Object
- #response_body=(body) ⇒ Object
Instance Method Details
#dispatch(action, request, response = ActionDispatch::Response.new) ⇒ Object
11 12 13 14 15 |
# File 'lib/action_controller/metal/rack_delegation.rb', line 11 def dispatch(action, request, response = ActionDispatch::Response.new) @_response ||= response @_response.request ||= request super(action, request) end |
#reset_session ⇒ Object
22 23 24 |
# File 'lib/action_controller/metal/rack_delegation.rb', line 22 def reset_session @_request.reset_session end |
#response_body=(body) ⇒ Object
17 18 19 20 |
# File 'lib/action_controller/metal/rack_delegation.rb', line 17 def response_body=(body) response.body = body if response super end |