diff options
author | Juanito Fatas <katehuang0320@gmail.com> | 2015-09-16 01:01:53 +0800 |
---|---|---|
committer | Juanito Fatas <katehuang0320@gmail.com> | 2015-09-16 01:01:53 +0800 |
commit | 1fd99224dc7776e6887392d41330b4c126f35c76 (patch) | |
tree | 56491a147f7556a52c07bc507edd3faaa17afc7e /actionpack | |
parent | 49316d8a6357bbb19c2032faa3dfec8f7e0f0253 (diff) | |
download | rails-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.rb | 2 |
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 |