Methods
Public Class methods
[ show source ]
# File actionpack/lib/action_controller/session/abstract_store.rb, line 13
13: def initialize(by, env)
14: super()
15: @by = by
16: @env = env
17: @loaded = false
18: end
Public Instance methods
[ show source ]
# File actionpack/lib/action_controller/session/abstract_store.rb, line 27
27: def [](key)
28: load! unless @loaded
29: super
30: end
[ show source ]
# File actionpack/lib/action_controller/session/abstract_store.rb, line 32
32: def []=(key, value)
33: load! unless @loaded
34: super
35: end
[ show source ]
# File actionpack/lib/action_controller/session/abstract_store.rb, line 43
43: def data
44: ActiveSupport::Deprecation.warn(
45: "ActionController::Session::AbstractStore::SessionHash#data " +
46: "has been deprecated. Please use #to_hash instead.", caller)
47: to_hash
48: end
[ show source ]
# File actionpack/lib/action_controller/session/abstract_store.rb, line 50
50: def inspect
51: load! unless @loaded
52: super
53: end
[ show source ]
# File actionpack/lib/action_controller/session/abstract_store.rb, line 20
20: def session_id
21: ActiveSupport::Deprecation.warn(
22: "ActionController::Session::AbstractStore::SessionHash#session_id " +
23: "has been deprecated. Please use request.session_options[:id] instead.", caller)
24: @env[ENV_SESSION_OPTIONS_KEY][:id]
25: end
[ show source ]
# File actionpack/lib/action_controller/session/abstract_store.rb, line 37
37: def to_hash
38: h = {}.replace(self)
39: h.delete_if { |k,v| v.nil? }
40: h
41: end