instance method
call
Ruby on Rails 8.1.2
Since v3.0.20Signature
call(env)
No documentation comment.
Parameters
-
envreq
Source
# File actionpack/lib/action_dispatch/middleware/cookies.rb, line 706
def call(env)
request = ActionDispatch::Request.new(env)
response = @app.call(env)
if request.have_cookie_jar?
cookie_jar = request.cookie_jar
unless cookie_jar.committed?
response = Rack::Response[*response]
cookie_jar.write(response)
end
end
response.to_a
end
Defined in actionpack/lib/action_dispatch/middleware/cookies.rb line 706
· View on GitHub
· Improve this page
· Find usages on GitHub
Defined in ActionDispatch::Cookies