instance method
is_storage_strategy?
Ruby on Rails 8.1.2
Since v7.1.6 PrivateSignature
is_storage_strategy?(object)
No documentation comment.
Parameters
-
objectreq
Source
# File actionpack/lib/action_controller/metal/request_forgery_protection.rb, line 255
def is_storage_strategy?(object)
object.respond_to?(:fetch) && object.respond_to?(:store) && object.respond_to?(:reset)
end
Defined in actionpack/lib/action_controller/metal/request_forgery_protection.rb line 255
· View on GitHub
· Improve this page
· Find usages on GitHub
Defined in ActionController::RequestForgeryProtection::ClassMethods