lib/mongomodel/concerns/attribute_methods/dirty.rb in mongomodel-0.2.15 vs lib/mongomodel/concerns/attribute_methods/dirty.rb in mongomodel-0.2.16

- old
+ new

@@ -10,10 +10,10 @@ after_save { changed_attributes.clear } end # Returns the attributes as they were before any changes were made to the document. def original_attributes - {}.merge(attributes).merge(changed_attributes) + {}.with_indifferent_access.merge(attributes).merge(changed_attributes) end protected def changed_attributes attributes.changed