lib/supermodel/marshal.rb in supermodel-0.0.6 vs lib/supermodel/marshal.rb in supermodel-0.0.8
- old
+ new
@@ -43,14 +43,16 @@
def self.included(base)
Marshal.klasses << base
end
def marshal_dump
- @attributes
+ serializable_hash
end
- def marshal_load(attributes)
- @attributes = attributes
+ def marshal_load(atts)
+ # Can't call load, since class
+ # isn't setup properly
+ @attributes = atts
end
end
end
end
\ No newline at end of file