The default Active Record class.

Methods
D
F
L
N
Attributes
[W] data
Class Public methods
data_column_name

Customizable data column name. Defaults to ‘data’.

# File activerecord/lib/active_record/session_store.rb, line 83
cattr_accessor :data_column_name
data_column_size_limit()
# File activerecord/lib/active_record/session_store.rb, line 92
def data_column_size_limit
  @data_column_size_limit ||= columns_hash[data_column_name].limit
end
find_by_session_id(session_id)

Hook to set up sessid compatibility.

# File activerecord/lib/active_record/session_store.rb, line 97
def find_by_session_id(session_id)
  setup_sessid_compatibility!
  find_by_session_id(session_id)
end
new(attributes = nil, options = {})
# File activerecord/lib/active_record/session_store.rb, line 128
def initialize(attributes = nil, options = {})
  @data = nil
  super
end
Instance Public methods
data()

Lazy-unmarshal session state.

# File activerecord/lib/active_record/session_store.rb, line 134
def data
  @data ||= self.class.unmarshal(read_attribute(@@data_column_name)) || {}
end
loaded?()

Has the session been loaded yet?

# File activerecord/lib/active_record/session_store.rb, line 141
def loaded?
  @data
end