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

Inherits:
ActionDispatch::Cookies::CookieJar show all
Defined in:
actionpack/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 Enumerable

#as_json, #exclude?, #index_by, #many?, #sum

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



133
134
135
136
137
138
139
# File 'actionpack/lib/action_controller/metal/request_forgery_protection.rb', line 133

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



141
142
143
# File 'actionpack/lib/action_controller/metal/request_forgery_protection.rb', line 141

def write(*)
  # nothing
end