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
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.
269 270 271 272 273 |
# File 'lib/action_controller/metal/request_forgery_protection.rb', line 269 def initialize(req) super(nil, req) @data = {} @loaded = true end |
Instance Method Details
#destroy ⇒ Object
no-op
276 |
# File 'lib/action_controller/metal/request_forgery_protection.rb', line 276 def destroy; end |
#enabled? ⇒ Boolean
282 283 284 |
# File 'lib/action_controller/metal/request_forgery_protection.rb', line 282 def enabled? false end |
#exists? ⇒ Boolean
278 279 280 |
# File 'lib/action_controller/metal/request_forgery_protection.rb', line 278 def exists? true end |