aboutsummaryrefslogtreecommitdiffstats
path: root/actionpack/lib
diff options
context:
space:
mode:
authorSantiago Pastorino <santiago@wyeworks.com>2013-02-21 15:25:26 -0200
committerSantiago Pastorino <santiago@wyeworks.com>2013-02-21 15:25:26 -0200
commitc60be72c5243c21303b067c9c5cc398111cf48c8 (patch)
tree0db5c36fb165af6ef91d0ff13df2d181a8dd5437 /actionpack/lib
parent765006ded8e8368a85f908748f9c96786ff851a0 (diff)
downloadrails-c60be72c5243c21303b067c9c5cc398111cf48c8.tar.gz
rails-c60be72c5243c21303b067c9c5cc398111cf48c8.tar.bz2
rails-c60be72c5243c21303b067c9c5cc398111cf48c8.zip
This cache is not needed
Diffstat (limited to 'actionpack/lib')
-rw-r--r--actionpack/lib/action_controller/metal/request_forgery_protection.rb3
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.