aboutsummaryrefslogtreecommitdiffstats
path: root/actionpack
diff options
context:
space:
mode:
authorJuanito Fatas <katehuang0320@gmail.com>2015-09-16 01:01:53 +0800
committerJuanito Fatas <katehuang0320@gmail.com>2015-09-16 01:01:53 +0800
commit1fd99224dc7776e6887392d41330b4c126f35c76 (patch)
tree56491a147f7556a52c07bc507edd3faaa17afc7e /actionpack
parent49316d8a6357bbb19c2032faa3dfec8f7e0f0253 (diff)
downloadrails-1fd99224dc7776e6887392d41330b4c126f35c76.tar.gz
rails-1fd99224dc7776e6887392d41330b4c126f35c76.tar.bz2
rails-1fd99224dc7776e6887392d41330b4c126f35c76.zip
Use rack.session_options instead of directly change env
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