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, #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



136
137
138
139
140
141
142
# File 'lib/action_controller/metal/request_forgery_protection.rb', line 136

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



144
145
146
# File 'lib/action_controller/metal/request_forgery_protection.rb', line 144

def write(*)
  # nothing
end