From e6074a35412b85c4c27a7d8063c68370617e3daa Mon Sep 17 00:00:00 2001 From: Aaron Patterson Date: Wed, 5 Aug 2015 17:40:28 -0700 Subject: stop using an options hash with the cookie jar The cookie jar can just ask the request object for the information it needs. This allows us to stop allocating hashes for options, and also allows us to delay calculating values in advance. Generating the options hash forced us to calculate values that we may never have needed at runtime --- actionpack/lib/action_controller/metal/request_forgery_protection.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'actionpack/lib/action_controller/metal/request_forgery_protection.rb') diff --git a/actionpack/lib/action_controller/metal/request_forgery_protection.rb b/actionpack/lib/action_controller/metal/request_forgery_protection.rb index 99c2287fcb..e4246c46b7 100644 --- a/actionpack/lib/action_controller/metal/request_forgery_protection.rb +++ b/actionpack/lib/action_controller/metal/request_forgery_protection.rb @@ -165,7 +165,7 @@ module ActionController #:nodoc: host = request.host secure = request.ssl? - new(key_generator, host, secure, options_for_req(request)) + new(key_generator, host, secure, request) end def write(*) -- cgit v1.2.3