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

Returns a new instance of NullSessionHash.


245
246
247
248
249
# File 'actionpack/lib/action_controller/metal/request_forgery_protection.rb', line 245

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

Instance Method Details

#destroyObject

no-op


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

def destroy; end

#enabled?Boolean

Returns:

  • (Boolean)

258
259
260
# File 'actionpack/lib/action_controller/metal/request_forgery_protection.rb', line 258

def enabled?
  false
end

#exists?Boolean

Returns:

  • (Boolean)

254
255
256
# File 'actionpack/lib/action_controller/metal/request_forgery_protection.rb', line 254

def exists?
  true
end