Module | ActionController::RequestForgeryProtection |
In: |
lib/action_controller/request_forgery_protection.rb
|
Sets the token value for the current session. Pass a :secret option in protect_from_forgery to add a custom salt to the hash.
Returns true or false if a request is verified. Checks: