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...
1 parent 3cb7e04 commit 2e87196d14f0cb7b75a6b81cbd8a0810ed684de9 Carl Lerche committed Dec 29, 2009
Showing with 1 addition and 1 deletion.
  1. +1 −1 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

0 comments on commit 2e87196

Please sign in to comment.