diff --git a/lib/active_hash/base.rb b/lib/active_hash/base.rb index fdcbf569..1b7bed91 100644 --- a/lib/active_hash/base.rb +++ b/lib/active_hash/base.rb @@ -116,9 +116,7 @@ def data end def data=(array_of_hashes) - mark_dirty - records.clear - reset_record_index + delete_all self._data = array_of_hashes if array_of_hashes auto_assign_fields(array_of_hashes)