Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Use extlib_inheritable_accessor in request_forgery_protection.rb.

For some reason the current class_inheritable_accessor does not play nice with included hooks. class_inheritable_accessor will be revised shortly.
  • Loading branch information...
commit 2e87196d14f0cb7b75a6b81cbd8a0810ed684de9 1 parent 3cb7e04
Carl Lerche authored
View
2  actionpack/lib/action_controller/metal/request_forgery_protection.rb
@@ -13,7 +13,7 @@ module RequestForgeryProtection
cattr_accessor :request_forgery_protection_token
# Controls whether request forgergy protection is turned on or not. Turned off by default only in test mode.
- class_inheritable_accessor :allow_forgery_protection
+ extlib_inheritable_accessor :allow_forgery_protection
self.allow_forgery_protection = true
helper_method :form_authenticity_token
Please sign in to comment.
Something went wrong with that request. Please try again.