Module: ActionController::RackDelegation

Extended by:
ActiveSupport::Concern
Included in:
ConditionalGet, Cookies, Redirecting, Testing
Defined in:
actionpack/lib/action_controller/metal/rack_delegation.rb

Instance Method Summary collapse

Methods included from ActiveSupport::Concern

append_features, extended, included

Instance Method Details

#dispatch(action, request, response = ActionDispatch::Response.new) ⇒ Object



11
12
13
14
15
# File 'actionpack/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_sessionObject



22
23
24
# File 'actionpack/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 'actionpack/lib/action_controller/metal/rack_delegation.rb', line 17

def response_body=(body)
  response.body = body if response
  super
end