diff options
| author | Aaron Patterson <aaron.patterson@gmail.com> | 2015-08-05 18:17:13 -0700 | 
|---|---|---|
| committer | Aaron Patterson <aaron.patterson@gmail.com> | 2015-08-05 18:17:13 -0700 | 
| commit | 3d32a50ca1933ee96abbe5db7ee99617fd0c328c (patch) | |
| tree | c1b1b342e67f1642833c3bb1a198db2da43f03f8 /actionpack/lib/action_controller/metal | |
| parent | aad33d5808a8c5fd10732db1045fb3367a4e72f4 (diff) | |
| download | rails-3d32a50ca1933ee96abbe5db7ee99617fd0c328c.tar.gz rails-3d32a50ca1933ee96abbe5db7ee99617fd0c328c.tar.bz2 rails-3d32a50ca1933ee96abbe5db7ee99617fd0c328c.zip  | |
remove `@host` ivar
Diffstat (limited to 'actionpack/lib/action_controller/metal')
| -rw-r--r-- | actionpack/lib/action_controller/metal/request_forgery_protection.rb | 8 | 
1 files changed, 1 insertions, 7 deletions
diff --git a/actionpack/lib/action_controller/metal/request_forgery_protection.rb b/actionpack/lib/action_controller/metal/request_forgery_protection.rb index 8def048178..6a55a61abe 100644 --- a/actionpack/lib/action_controller/metal/request_forgery_protection.rb +++ b/actionpack/lib/action_controller/metal/request_forgery_protection.rb @@ -139,7 +139,7 @@ module ActionController #:nodoc:            request.session = NullSessionHash.new(request.env)            request.env['action_dispatch.request.flash_hash'] = nil            request.env['rack.session.options'] = { skip: true } -          request.env['action_dispatch.cookies'] = NullCookieJar.build(request) +          request.env['action_dispatch.cookies'] = NullCookieJar.build(request, {})          end          protected @@ -160,12 +160,6 @@ module ActionController #:nodoc:          end          class NullCookieJar < ActionDispatch::Cookies::CookieJar #:nodoc: -          def self.build(request) -            host          = request.host - -            new(host, request) -          end -            def write(*)              # nothing            end  | 
