123456789_123456789_123456789_123456789_123456789_

Class: ActionController::RequestForgeryProtection::ProtectionMethods::NullSession::NullSessionHash

Do not use. This class is for internal use only.
Relationships & Source Files
Super Chains via Extension / Inclusion / Inheritance
Class Chain:
self, Rack::Session::Abstract::SessionHash
Instance Chain:
self, Rack::Session::Abstract::SessionHash
Inherits: Rack::Session::Abstract::SessionHash
  • ::Object
Defined in: actionpack/lib/action_controller/metal/request_forgery_protection.rb

Class Method Summary

Instance Attribute Summary

Instance Method Summary

Constructor Details

.new(req) ⇒ NullSessionHash

[ GitHub ]

  
# File 'actionpack/lib/action_controller/metal/request_forgery_protection.rb', line 250

def initialize(req)
  super(nil, req)
  @data = {}
  @loaded = true
end

Instance Attribute Details

#enabled?Boolean (readonly)

[ GitHub ]

  
# File 'actionpack/lib/action_controller/metal/request_forgery_protection.rb', line 263

def enabled?
  false
end

#exists?Boolean (readonly)

[ GitHub ]

  
# File 'actionpack/lib/action_controller/metal/request_forgery_protection.rb', line 259

def exists?
  true
end

Instance Method Details

#destroy

no-op

[ GitHub ]

  
# File 'actionpack/lib/action_controller/metal/request_forgery_protection.rb', line 257

def destroy; end