lib/mongoo/core.rb in mongoo-0.5.5 vs lib/mongoo/core.rb in mongoo-0.5.6

- old
+ new

@@ -42,9 +42,14 @@ end set_mongohash hash end protected :init_from_hash + def reset_persisted_mongohash + @persisted = true + set_persisted_mongohash(mongohash) + end + def set_mongohash(mongohash) @mongohash = mongohash end protected :set_mongohash \ No newline at end of file