Class: ActionController::RequestForgeryProtection::ProtectionMethods::NullSession::NullSessionHash
- Inherits:
-
Rack::Session::Abstract::SessionHash
- Object
- Rack::Session::Abstract::SessionHash
- ActionController::RequestForgeryProtection::ProtectionMethods::NullSession::NullSessionHash
- Defined in:
- lib/action_controller/metal/request_forgery_protection.rb
Overview
:nodoc:
Instance Method Summary collapse
-
#destroy ⇒ Object
no-op.
- #enabled? ⇒ Boolean
- #exists? ⇒ Boolean
-
#initialize(req) ⇒ NullSessionHash
constructor
A new instance of NullSessionHash.
Constructor Details
#initialize(req) ⇒ NullSessionHash
Returns a new instance of NullSessionHash.
210 211 212 213 214 |
# File 'lib/action_controller/metal/request_forgery_protection.rb', line 210 def initialize(req) super(nil, req) @data = {} @loaded = true end |
Instance Method Details
#destroy ⇒ Object
no-op
217 |
# File 'lib/action_controller/metal/request_forgery_protection.rb', line 217 def destroy; end |
#enabled? ⇒ Boolean
223 224 225 |
# File 'lib/action_controller/metal/request_forgery_protection.rb', line 223 def enabled? false end |
#exists? ⇒ Boolean
219 220 221 |
# File 'lib/action_controller/metal/request_forgery_protection.rb', line 219 def exists? true end |