lib/active_archive/base.rb in active_archive-5.1.5 vs lib/active_archive/base.rb in active_archive-5.1.6
- old
+ new
@@ -178,10 +178,10 @@
begin
should_ignore_validations?(force) ? record.save(validate: false) : record.save!
if ::ActiveRecord::VERSION::MAJOR >= 5 && ::ActiveRecord::VERSION::MINOR >= 2
- @mutations_before_last_save = record.send(:mutations_before_last_save)
+ @mutations_before_last_save = record.send(:mutations_from_database)
@attributes_changed_by_setter = HashWithIndifferentAccess.new
@attributes = record.instance_variable_get('@attributes') || record.changes
@mutations_from_database = nil
elsif ::ActiveRecord::VERSION::MAJOR >= 5
@previous_mutation_tracker = record.send(:previous_mutation_tracker)