class method
self.new
Ruby on Rails 7.1.6
Since v7.1.6Signature
self.new(cookie = :csrf_token)
No documentation comment.
Parameters
-
cookieopt = :csrf_token
Source
# File actionpack/lib/action_controller/metal/request_forgery_protection.rb, line 313
def initialize(cookie = :csrf_token)
@cookie_name = cookie
end
Defined in actionpack/lib/action_controller/metal/request_forgery_protection.rb line 313
· View on GitHub
· Improve this page
· Find usages on GitHub
Defined in ActionController::RequestForgeryProtection::CookieStore