active_archive 5.1.5 → 5.1.6
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/active_archive/base.rb +1 -1
- data/lib/active_archive/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 555d9d57a382834f8bc0239cf34646854b79f8db49a6db615542107342d87507
|
4
|
+
data.tar.gz: 9c36c1db3a8b015787649f77d221437560216ac2667a3c21d0ba98241fe70e90
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 99c176eebbe41ad48670a6966c9fcb56d8e40cfa231fa2bd3385bdcbfd7f9a12b90fac41e70b9a43c02c2581090fb18cb37b6c87df09a693d57a9f523c3ecb2f
|
7
|
+
data.tar.gz: 50ecdadab9a70583618bf09bd6d5eb486f08ac215916e5deac94bbe0842a5787bcf019a0607653837179f79eab02c79190a326996dd09a033a1174be69d013e2
|
data/lib/active_archive/base.rb
CHANGED
@@ -180,7 +180,7 @@ module ActiveArchive
|
|
180
180
|
should_ignore_validations?(force) ? record.save(validate: false) : record.save!
|
181
181
|
|
182
182
|
if ::ActiveRecord::VERSION::MAJOR >= 5 && ::ActiveRecord::VERSION::MINOR >= 2
|
183
|
-
@mutations_before_last_save = record.send(:
|
183
|
+
@mutations_before_last_save = record.send(:mutations_from_database)
|
184
184
|
@attributes_changed_by_setter = HashWithIndifferentAccess.new
|
185
185
|
@attributes = record.instance_variable_get('@attributes') || record.changes
|
186
186
|
@mutations_from_database = nil
|