Permalink
Browse files

revised convention for lists in request_forgery_protection.rb

  • Loading branch information...
1 parent bc3aa6b commit 238acc81be4e7a7385cb0dbb0eb90c0e79c84dbf @fxn fxn committed May 5, 2008
Showing with 2 additions and 2 deletions.
  1. +2 −2 actionpack/lib/action_controller/request_forgery_protection.rb
@@ -69,10 +69,10 @@ module ClassMethods
#
# 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)

0 comments on commit 238acc8

Please sign in to comment.