提交 49316d8a 编写于 作者: A Aaron Patterson

fewer direct env manipulations

this commit removes some direct access to `env`.
上级 ec6638a2
......@@ -137,7 +137,7 @@ def initialize(controller)
def handle_unverified_request
request = @controller.request
request.session = NullSessionHash.new(request)
request.env['action_dispatch.request.flash_hash'] = nil
request.flash = nil
request.env['rack.session.options'] = { skip: true }
request.cookie_jar = NullCookieJar.build(request, {})
end
......
......@@ -324,7 +324,7 @@ def reset_session
else
self.session = {}
end
set_header('action_dispatch.request.flash_hash', nil)
self.flash = nil
end
def session=(session) #:nodoc:
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册