This method is deprecated or moved on the latest stable version.
The last existing version (v2.2.1) is shown here.
new(attributes)
public
Look for normal and marshaled data, self.find_by_session_id’s way of
telling us to postpone unmarshaling until the data is
requested. We need to handle a normal data
attribute in case of a new
record.
# File actionpack/lib/action_controller/session/active_record_store.rb, line 223
def initialize(attributes)
@session_id, @data, @marshaled_data = attributes[:session_id], attributes[:data], attributes[:marshaled_data]
@new_record = @marshaled_data.nil?
end