active_archive 5.1.0 → 5.1.1
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 +3 -0
- 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: 6e79f883ab5825f00ee04650e5122b97d4ea0a6645ed2efa7eb31c1f395a7fab
|
4
|
+
data.tar.gz: e6d98b9eac6767431d471bb2b2e210b9e165aabb16bb2c2be80e5c3fedfe655a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 050b2975d6e1a418647a6bad987176a5fc3700d9d96a5ce3d98d23cd21987813bcc26542ae7c45f7d36a1b1fd11edd5534fd78c89ef7423a7eb41639578151a6
|
7
|
+
data.tar.gz: 84f049762db5b11c6e45dd3ce1f4f8f96c4265e6bf8368930804d816ddeca11e64a7ffd62a4f4b0b5107ced2eb64aec3c0c38bfdbe4a66cac1d492ed5e41cba0
|
data/lib/active_archive/base.rb
CHANGED
@@ -179,7 +179,10 @@ module ActiveArchive
|
|
179
179
|
begin
|
180
180
|
should_ignore_validations?(force) ? record.save(validate: false) : record.save!
|
181
181
|
|
182
|
+
@previous_mutation_tracker = record.try(:previous_mutation_tracker)
|
183
|
+
@changed_attributes = HashWithIndifferentAccess.new
|
182
184
|
@attributes = record.instance_variable_get('@attributes')
|
185
|
+
@mutation_tracker = nil
|
183
186
|
rescue => error
|
184
187
|
record.destroy
|
185
188
|
raise(error)
|