Class: Rack::Session::Abstract::PersistedSecure::SecureSessionHash

Inherits:
SessionHash
  • Object
show all
Defined in:
lib/rack/session/abstract/id.rb

Constant Summary

Constants inherited from SessionHash

SessionHash::Unspecified

Instance Attribute Summary

Attributes inherited from SessionHash

#id

Instance Method Summary collapse

Methods inherited from SessionHash

#[]=, #clear, #delete, #destroy, #each, #empty?, #exists?, #fetch, find, #has_key?, #initialize, #inspect, #keys, #loaded?, #options, #replace, set, set_options, #to_hash, #update, #values

Constructor Details

This class inherits a constructor from Rack::Session::Abstract::SessionHash

Instance Method Details

#[](key) ⇒ Object



442
443
444
445
446
447
448
449
# File 'lib/rack/session/abstract/id.rb', line 442

def [](key)
  if key == "session_id"
    load_for_read!
    id.public_id
  else
    super
  end
end