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

Inherits:
SessionHash show all
Defined in:
lib/rubypitaya/app-template/vendor/bundle/ruby/3.1.0/gems/rack-2.2.5/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

Methods included from Enumerable

#as_json, #compact_blank, #exclude?, #excluding, #in_order_of, #including, #index_by, #index_with, #many?, #maximum, #minimum, #pick, #pluck, #sole, #sum

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/rubypitaya/app-template/vendor/bundle/ruby/3.1.0/gems/rack-2.2.5/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