Permalink
Browse files

This cache is not needed

  • Loading branch information...
1 parent 765006d commit c60be72c5243c21303b067c9c5cc398111cf48c8 @spastorino spastorino committed Feb 21, 2013
Showing with 1 addition and 2 deletions.
  1. +1 −2 actionpack/lib/action_controller/metal/request_forgery_protection.rb
@@ -167,8 +167,7 @@ def handle_unverified_request
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.

0 comments on commit c60be72

Please sign in to comment.