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


136
137
138
139
140
# File 'actionpack/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 'actionpack/lib/action_controller/metal/request_forgery_protection.rb', line 143

def destroy; end

#exists?Boolean


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

def exists?
  true
end