The default Active Record class.
Methods
- D
-
- F
-
- L
-
- N
-
Attributes
Class Public methods
Customizable data column name. Defaults to ‘data’.
Source:
show
| on GitHub
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.
Source:
show
| on GitHub
def find_by_session_id(session_id)
setup_sessid_compatibility!
find_by_session_id(session_id)
end
new(attributes = nil, options = {})
Source:
show
| on GitHub
def initialize(attributes = nil, options = {})
@data = nil
super
end
Instance Public methods
Lazy-unmarshal session state.
Source:
show
| on GitHub
def data
@data ||= self.class.unmarshal(read_attribute(@@data_column_name)) || {}
end
Has the session been loaded yet?