From 1fd99224dc7776e6887392d41330b4c126f35c76 Mon Sep 17 00:00:00 2001 From: Juanito Fatas Date: Wed, 16 Sep 2015 01:01:53 +0800 Subject: Use rack.session_options instead of directly change env --- actionpack/lib/action_controller/metal/request_forgery_protection.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'actionpack') 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 -- cgit v1.2.3