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, #dig, #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



455
456
457
458
459
460
461
462
# File 'lib/rack/session/abstract/id.rb', line 455

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