lib/superstore/persistence.rb in superstore-1.0.7 vs lib/superstore/persistence.rb in superstore-1.0.8

- old
+ new

@@ -66,10 +66,10 @@ def typecast_persisted_attributes(object, attributes) attributes.each do |key, value| if definition = attribute_definitions[key] attributes[key] = definition.instantiate(value) - else + elsif key != primary_key attributes.delete(key) end end attribute_definitions.each_value do |definition|