提交 688bcc8e 编写于 作者: R Ronak Jangir

Another place to use a request object in NullSessionHash

May be missed in 5fe14163 commit
Also fixes the broken build
上级 3cbaeb16
......@@ -136,7 +136,7 @@ def initialize(controller)
# This is the method that defines the application behavior when a request is found to be unverified.
def handle_unverified_request
request = @controller.request
request.session = NullSessionHash.new(request.env)
request.session = NullSessionHash.new(request)
request.env['action_dispatch.request.flash_hash'] = nil
request.env['rack.session.options'] = { skip: true }
request.cookie_jar = NullCookieJar.build(request, {})
......@@ -145,8 +145,8 @@ def handle_unverified_request
protected
class NullSessionHash < Rack::Session::Abstract::SessionHash #:nodoc:
def initialize(env)
super(nil, env)
def initialize(req)
super(nil, req)
@data = {}
@loaded = true
end
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册