Class: ActionController::RequestForgeryProtection::ProtectionMethods::NullSession::NullCookieJar

Inherits:
ActionDispatch::Cookies::CookieJar show all
Defined in:
lib/action_controller/metal/request_forgery_protection.rb

Overview

:nodoc:

Constant Summary

Constants inherited from ActionDispatch::Cookies::CookieJar

ActionDispatch::Cookies::CookieJar::DOMAIN_REGEXP

Class Method Summary collapse

Instance Method Summary collapse

Methods inherited from ActionDispatch::Cookies::CookieJar

#[], #[]=, #clear, #commit!, #committed?, #delete, #deleted?, #each, #fetch, #handle_options, #initialize, #key?, options_for_env, #recycle!, #update

Methods included from ActionDispatch::Cookies::ChainedCookieJars

#encrypted, #permanent, #signed, #signed_or_encrypted

Constructor Details

This class inherits a constructor from ActionDispatch::Cookies::CookieJar

Class Method Details

.build(request) ⇒ Object



146
147
148
149
150
151
152
# File 'lib/action_controller/metal/request_forgery_protection.rb', line 146

def self.build(request)
  key_generator = request.env[ActionDispatch::Cookies::GENERATOR_KEY]
  host          = request.host
  secure        = request.ssl?

  new(key_generator, host, secure, options_for_env({}))
end

Instance Method Details

#writeObject



154
155
156
# File 'lib/action_controller/metal/request_forgery_protection.rb', line 154

def write(*)
  # nothing
end