method
per_form_csrf_token
v5.1.7 -
Show latest stable
- Class:
ActionController::RequestForgeryProtection
per_form_csrf_token(session, action_path, method)private
No documentation available.
# File actionpack/lib/action_controller/metal/request_forgery_protection.rb, line 378
def per_form_csrf_token(session, action_path, method) # :doc:
OpenSSL::HMAC.digest(
OpenSSL::Digest::SHA256.new,
real_csrf_token(session),
[action_path, method.downcase].join("#")
)
end