instance method
coerce_same_site_protection
Ruby on Rails 7.1.6
Since v6.1.7.10 Private — implementation detail, not part of the public APISignature
coerce_same_site_protection(protection)
No documentation comment.
Parameters
-
protectionreq
Source
# File railties/lib/rails/application.rb, line 707
def coerce_same_site_protection(protection)
protection.respond_to?(:call) ? protection : proc { protection }
end
Defined in railties/lib/rails/application.rb line 707
· View on GitHub
· Improve this page
· Find usages on GitHub
Defined in Rails::Application