instance method
verification_strategy
Ruby on Rails edge
Since edge Private — implementation detail, not part of the public APISignature
verification_strategy(name)
No documentation comment.
Parameters
-
namereq
Source
# File actionpack/lib/action_controller/metal/request_forgery_protection.rb, line 356
def verification_strategy(name)
case name
when :header_only, :header_or_legacy_token
name
else
raise ArgumentError, "Invalid request forgery verification strategy, use :header_only or :header_or_legacy_token."
end
end
Defined in actionpack/lib/action_controller/metal/request_forgery_protection.rb line 356
· View on GitHub
· Improve this page
· Find usages on GitHub
Defined in ActionController::RequestForgeryProtection::ClassMethods