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 85
cattr_accessor :data_column_name
new(attributes = nil, options = {})
# File activerecord/lib/active_record/session_store.rb, line 130
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 136
def data
  @data ||= self.class.unmarshal(read_attribute(@@data_column_name)) || {}
end
data_column_size_limit()
# File activerecord/lib/active_record/session_store.rb, line 94
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 99
def find_by_session_id(session_id)
  setup_sessid_compatibility!
  find_by_session_id(session_id)
end
loaded?()

Has the session been loaded yet?

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