diff options
author | Xavier Noria <fxn@hashref.com> | 2008-05-05 22:41:11 +0200 |
---|---|---|
committer | Xavier Noria <fxn@hashref.com> | 2008-05-05 22:41:11 +0200 |
commit | 238acc81be4e7a7385cb0dbb0eb90c0e79c84dbf (patch) | |
tree | 5ca48ba4d30dd4e44a401b34e8ce3462f6f6f19a /actionpack | |
parent | bc3aa6b65b0e1767faa02832a8b7aa0243ab725f (diff) | |
download | rails-238acc81be4e7a7385cb0dbb0eb90c0e79c84dbf.tar.gz rails-238acc81be4e7a7385cb0dbb0eb90c0e79c84dbf.tar.bz2 rails-238acc81be4e7a7385cb0dbb0eb90c0e79c84dbf.zip |
revised convention for lists in request_forgery_protection.rb
Diffstat (limited to 'actionpack')
-rw-r--r-- | actionpack/lib/action_controller/request_forgery_protection.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/actionpack/lib/action_controller/request_forgery_protection.rb b/actionpack/lib/action_controller/request_forgery_protection.rb index 7e6961d25f..5daf14eb30 100644 --- a/actionpack/lib/action_controller/request_forgery_protection.rb +++ b/actionpack/lib/action_controller/request_forgery_protection.rb @@ -69,10 +69,10 @@ module ActionController #:nodoc: # # Valid Options: # - # * <tt>:only/:except</tt> - passed to the <tt>before_filter</tt> call. Set which actions are verified. + # * <tt>:only/:except</tt> - Passed to the <tt>before_filter</tt> call. Set which actions are verified. # * <tt>:secret</tt> - Custom salt used to generate the <tt>form_authenticity_token</tt>. # Leave this off if you are using the cookie session store. - # * <tt>:digest</tt> - Message digest used for hashing. Defaults to 'SHA1' + # * <tt>:digest</tt> - Message digest used for hashing. Defaults to 'SHA1'. def protect_from_forgery(options = {}) self.request_forgery_protection_token ||= :authenticity_token before_filter :verify_authenticity_token, :only => options.delete(:only), :except => options.delete(:except) |