diff options
author | Carl Lerche <carllerche@mac.com> | 2009-12-29 13:21:36 -0800 |
---|---|---|
committer | Carl Lerche <carllerche@mac.com> | 2009-12-29 13:21:36 -0800 |
commit | 2e87196d14f0cb7b75a6b81cbd8a0810ed684de9 (patch) | |
tree | d3c9c1cee06becbadf7250833571fe6dcf1ace51 /actionpack/lib/action_controller/metal | |
parent | 3cb7e047637e57349ed9e4c81d4f7b3157045661 (diff) | |
download | rails-2e87196d14f0cb7b75a6b81cbd8a0810ed684de9.tar.gz rails-2e87196d14f0cb7b75a6b81cbd8a0810ed684de9.tar.bz2 rails-2e87196d14f0cb7b75a6b81cbd8a0810ed684de9.zip |
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.
Diffstat (limited to 'actionpack/lib/action_controller/metal')
-rw-r--r-- | actionpack/lib/action_controller/metal/request_forgery_protection.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/actionpack/lib/action_controller/metal/request_forgery_protection.rb b/actionpack/lib/action_controller/metal/request_forgery_protection.rb index 2826b1e34c..f1fb4d7ce5 100644 --- a/actionpack/lib/action_controller/metal/request_forgery_protection.rb +++ b/actionpack/lib/action_controller/metal/request_forgery_protection.rb @@ -13,7 +13,7 @@ module ActionController #:nodoc: 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 |