Skip to content

Commit

Permalink
Removed reference in documentation of form_authenticity_token to depr…
Browse files Browse the repository at this point in the history
…ecated :secret option of protect_from_forgery
  • Loading branch information
Luke Amdor committed Apr 27, 2009
1 parent ba84025 commit 4df9680
Showing 1 changed file with 1 addition and 2 deletions.
Expand Up @@ -96,8 +96,7 @@ def verifiable_request_format?
!request.content_type.nil? && request.content_type.verify_request? !request.content_type.nil? && request.content_type.verify_request?
end end


# Sets the token value for the current session. Pass a <tt>:secret</tt> option # Sets the token value for the current session.
# in +protect_from_forgery+ to add a custom salt to the hash.
def form_authenticity_token def form_authenticity_token
session[:_csrf_token] ||= ActiveSupport::SecureRandom.base64(32) session[:_csrf_token] ||= ActiveSupport::SecureRandom.base64(32)
end end
Expand Down

0 comments on commit 4df9680

Please sign in to comment.