123456789_123456789_123456789_123456789_123456789_

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

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 269

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 282

def enabled?
  false
end

#exists?Boolean (readonly)

[ GitHub ]

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

def exists?
  true
end

Instance Method Details

#destroy

no-op

[ GitHub ]

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

def destroy; end