diff options
author | Rick Olson <technoweenie@gmail.com> | 2007-09-23 18:14:44 +0000 |
---|---|---|
committer | Rick Olson <technoweenie@gmail.com> | 2007-09-23 18:14:44 +0000 |
commit | c61900385452e50bd825f1ab5abef95bc969fadc (patch) | |
tree | d4fb78ed415dbb9dd69c0468eef0d039bf2817bc /actionpack/lib/action_controller/base.rb | |
parent | da0725aae3c08543dcc39446236a5a1fc55a9136 (diff) | |
download | rails-c61900385452e50bd825f1ab5abef95bc969fadc.tar.gz rails-c61900385452e50bd825f1ab5abef95bc969fadc.tar.bz2 rails-c61900385452e50bd825f1ab5abef95bc969fadc.zip |
Rename some RequestForgeryProtection methods. The class method is now #protect_from_forgery, and the default parameter is now 'authenticity_token'. [Rick]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@7596 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
Diffstat (limited to 'actionpack/lib/action_controller/base.rb')
-rwxr-xr-x | actionpack/lib/action_controller/base.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/actionpack/lib/action_controller/base.rb b/actionpack/lib/action_controller/base.rb index d6dd698c6e..bd250af90e 100755 --- a/actionpack/lib/action_controller/base.rb +++ b/actionpack/lib/action_controller/base.rb @@ -327,7 +327,7 @@ module ActionController #:nodoc: @@resource_action_separator = "/" cattr_accessor :resource_action_separator - # Sets the token parameter name for RequestForgery. Calling #verify_token sets it to :_token by default + # Sets the token parameter name for RequestForgery. Calling #protect_from_forgery sets it to :authenticity_token by default @@request_forgery_protection_token = nil cattr_accessor :request_forgery_protection_token |