diff options
author | Carl Lerche <carllerche@mac.com> | 2010-03-11 10:08:18 -0800 |
---|---|---|
committer | Carl Lerche <carllerche@mac.com> | 2010-03-11 10:08:18 -0800 |
commit | 8b4dca109a307e807a34a86e51f41b5d8a7d75b2 (patch) | |
tree | d5ca18d7e75db9e366564346c9e84762eed42399 | |
parent | 58796dcfc0d74fa3def752fa8b779f725f0747f0 (diff) | |
download | rails-8b4dca109a307e807a34a86e51f41b5d8a7d75b2.tar.gz rails-8b4dca109a307e807a34a86e51f41b5d8a7d75b2.tar.bz2 rails-8b4dca109a307e807a34a86e51f41b5d8a7d75b2.zip |
ActionController::Base.request_forgery_protection_token should actually be the name of the token and not true.
-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 6765314df2..39a809657b 100644 --- a/actionpack/lib/action_controller/metal/request_forgery_protection.rb +++ b/actionpack/lib/action_controller/metal/request_forgery_protection.rb @@ -12,7 +12,7 @@ module ActionController #:nodoc: included do # Sets the token parameter name for RequestForgery. Calling +protect_from_forgery+ # sets it to <tt>:authenticity_token</tt> by default. - config.request_forgery_protection_token ||= true + config.request_forgery_protection_token ||= :authenticity_token # Controls whether request forgergy protection is turned on or not. Turned off by default only in test mode. config.allow_forgery_protection ||= true |