aboutsummaryrefslogtreecommitdiffstats
path: root/actionpack
diff options
context:
space:
mode:
Diffstat (limited to 'actionpack')
-rw-r--r--actionpack/lib/action_controller/metal/request_forgery_protection.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/actionpack/lib/action_controller/metal/request_forgery_protection.rb b/actionpack/lib/action_controller/metal/request_forgery_protection.rb
index 2ddf34f40f..5674eef67b 100644
--- a/actionpack/lib/action_controller/metal/request_forgery_protection.rb
+++ b/actionpack/lib/action_controller/metal/request_forgery_protection.rb
@@ -138,7 +138,7 @@ module ActionController #:nodoc:
request = @controller.request
request.session = NullSessionHash.new(request)
request.flash = nil
- request.env['rack.session.options'] = { skip: true }
+ request.session_options = { skip: true }
request.cookie_jar = NullCookieJar.build(request, {})
end