lib/mongomodel/concerns/attribute_methods/dirty.rb in mongomodel-0.2.2 vs lib/mongomodel/concerns/attribute_methods/dirty.rb in mongomodel-0.2.3

- old
+ new

@@ -14,10 +14,10 @@ attributes.merge(changed_attributes) end # Wrap write_attribute to remember original attribute value. def write_attribute(attr, value) - attr = attr.to_sym + attr = attr.to_s # The attribute already has an unsaved change. if changed_attributes.include?(attr) old = changed_attributes[attr] changed_attributes.delete(attr) if value == old