lib/active_archive/base.rb in active_archive-5.1.3 vs lib/active_archive/base.rb in active_archive-5.1.4

- old
+ new

@@ -176,10 +176,14 @@ record = retrieve_archived_record record.archived_at = value begin should_ignore_validations?(force) ? record.save(validate: false) : record.save! + + @previously_changed = record.instance_variable_get('@previously_changed') + @changed_attributes = HashWithIndifferentAccess.new @attributes = record.instance_variable_get('@attributes') + @mutation_tracker = nil rescue => error record.destroy raise(error) end end