mirror of
https://github.com/rails/rails.git
synced 2022-11-09 12:12:34 -05:00
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:
parent
3cb7e04763
commit
2e87196d14
1 changed files with 1 additions and 1 deletions
|
@ -13,7 +13,7 @@ module ActionController #:nodoc:
|
||||||
cattr_accessor :request_forgery_protection_token
|
cattr_accessor :request_forgery_protection_token
|
||||||
|
|
||||||
# Controls whether request forgergy protection is turned on or not. Turned off by default only in test mode.
|
# 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
|
self.allow_forgery_protection = true
|
||||||
|
|
||||||
helper_method :form_authenticity_token
|
helper_method :form_authenticity_token
|
||||||
|
|
Loading…
Reference in a new issue