Permalink
Browse files

Removed reference in documentation of form_authenticity_token to depr…

…ecated :secret option of protect_from_forgery
  • Loading branch information...
rubbish committed Apr 27, 2009
1 parent ba84025 commit 4df9680a6fe6608e8a82924f52e51a028a8575e5
Showing with 1 addition and 2 deletions.
  1. +1 −2 actionpack/lib/action_controller/base/request_forgery_protection.rb
@@ -96,8 +96,7 @@ def verifiable_request_format?
!request.content_type.nil? && request.content_type.verify_request?
end
- # Sets the token value for the current session. Pass a <tt>:secret</tt> option
- # in +protect_from_forgery+ to add a custom salt to the hash.
+ # Sets the token value for the current session.
def form_authenticity_token
session[:_csrf_token] ||= ActiveSupport::SecureRandom.base64(32)
end

0 comments on commit 4df9680

Please sign in to comment.