Skip to content

Commit

Permalink
Use extlib_inheritable_accessor in request_forgery_protection.rb.
Browse files Browse the repository at this point in the history
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
Carl Lerche committed Dec 29, 2009
1 parent 3cb7e04 commit 2e87196
Showing 1 changed file with 1 addition and 1 deletion.
Expand Up @@ -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
Expand Down

0 comments on commit 2e87196

Please sign in to comment.