Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Removed reference in documentation of form_authenticity_token to depr…

…ecated :secret option of protect_from_forgery
  • Loading branch information...
commit 4df9680a6fe6608e8a82924f52e51a028a8575e5 1 parent ba84025
@rubbish rubbish authored
View
3  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
Please sign in to comment.
Something went wrong with that request. Please try again.