diff options
Diffstat (limited to 'actionpack/lib')
-rw-r--r-- | actionpack/lib/action_controller/metal/request_forgery_protection.rb | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/actionpack/lib/action_controller/metal/request_forgery_protection.rb b/actionpack/lib/action_controller/metal/request_forgery_protection.rb index cd151f9c4f..d275a854fd 100644 --- a/actionpack/lib/action_controller/metal/request_forgery_protection.rb +++ b/actionpack/lib/action_controller/metal/request_forgery_protection.rb @@ -167,8 +167,7 @@ module ActionController #:nodoc: protected def handle_unverified_request - @forgery_protection ||= forgery_protection_strategy.new(self) - @forgery_protection.handle_unverified_request + forgery_protection_strategy.new(self).handle_unverified_request end # The actual before_action that is used. Modify this to change how you handle unverified requests. |