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(req) ⇒ NullSessionHash

Returns a new instance of NullSessionHash.



158
159
160
161
162
# File 'lib/action_controller/metal/request_forgery_protection.rb', line 158

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

Instance Method Details

#destroyObject

no-op



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

def destroy; end

#exists?Boolean

Returns:

  • (Boolean)


167
168
169
# File 'lib/action_controller/metal/request_forgery_protection.rb', line 167

def exists?
  true
end