diff --git a/lib/active_hash/base.rb b/lib/active_hash/base.rb index cdede86a..39c476a8 100644 --- a/lib/active_hash/base.rb +++ b/lib/active_hash/base.rb @@ -108,9 +108,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)