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.



250
251
252
253
254
# File 'lib/action_controller/metal/request_forgery_protection.rb', line 250

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

Instance Method Details

#destroyObject

no-op



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

def destroy; end

#enabled?Boolean

Returns:

  • (Boolean)


263
264
265
# File 'lib/action_controller/metal/request_forgery_protection.rb', line 263

def enabled?
  false
end

#exists?Boolean

Returns:

  • (Boolean)


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

def exists?
  true
end