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.



121
122
123
124
125
# File 'actionpack/lib/action_controller/metal/request_forgery_protection.rb', line 121

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

Instance Method Details

#exists?Boolean

Returns:

  • (Boolean)


127
128
129
# File 'actionpack/lib/action_controller/metal/request_forgery_protection.rb', line 127

def exists?
  true
end