instance method
coerce_same_site_protection
Ruby on Rails 8.0.4
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 652
def coerce_same_site_protection(protection)
protection.respond_to?(:call) ? protection : proc { protection }
end
Defined in railties/lib/rails/application.rb line 652
· View on GitHub
· Improve this page
· Find usages on GitHub
Defined in Rails::Application