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

Inherits:
Rack::Session::Abstract::SessionHash
  • Object
show all
Defined in:
lib/action_controller/metal/request_forgery_protection.rb

Overview

:nodoc:

Instance Method Summary collapse

Constructor Details

#initialize(env) ⇒ NullSessionHash

Returns a new instance of NullSessionHash.



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

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

Instance Method Details

#destroyObject

no-op



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

def destroy; end

#exists?Boolean

Returns:

  • (Boolean)


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

def exists?
  true
end