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

Inherits:
Rack::Session::Abstract::SessionHash
  • Object
show all
Defined in:
actionpack/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.



131
132
133
134
135
# File 'actionpack/lib/action_controller/metal/request_forgery_protection.rb', line 131

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

Instance Method Details

#destroyObject

no-op



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

def destroy; end

#exists?Boolean

Returns:

  • (Boolean)


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

def exists?
  true
end