module TopModel::Marshal::Model
Public Class Methods
included(base)
click to toggle source
# File lib/topmodel/marshal.rb, line 58 def self.included(base) base.extend ClassMethods Marshal.klasses << base end
Public Instance Methods
marshal_dump()
click to toggle source
# File lib/topmodel/marshal.rb, line 63 def marshal_dump serializable_hash(self.class.marshal) end
marshal_load(atts)
click to toggle source
# File lib/topmodel/marshal.rb, line 67 def marshal_load(atts) # Can't call load, since class # isn't setup properly @attributes = atts.with_indifferent_access @changed_attributes = {} end