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.
This commit is contained in:
Carl Lerche 2009-12-29 13:21:36 -08:00
parent 3cb7e04763
commit 2e87196d14
1 changed files with 1 additions and 1 deletions

View File

@ -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