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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: e51700ecc706b14742671e9fd96c140946f02ef68ed2818ab5d664e007779540
4
- data.tar.gz: 44ff7a306f97978d6f43339e77e44f081c136c2388ef7c35e7bfe5a418736869
3
+ metadata.gz: 6e79f883ab5825f00ee04650e5122b97d4ea0a6645ed2efa7eb31c1f395a7fab
4
+ data.tar.gz: e6d98b9eac6767431d471bb2b2e210b9e165aabb16bb2c2be80e5c3fedfe655a
5
5
  SHA512:
6
- metadata.gz: 5c34991b4945a7c4abe43784d88390c578f79a36353c2adb60017443bf21c9b8858f82fe1e55baff795d4e8f7adcb7b1f345911cf1a6c8e01e426e8b47378073
7
- data.tar.gz: dfd43b7dae5f19f3dbef302ff5e91bd66c1502307aca1f0aee90ddae23986f99df48a6f95934f836241edd738b9b77bbaa449cac92acb4d7c4994e71620be50e
6
+ metadata.gz: 050b2975d6e1a418647a6bad987176a5fc3700d9d96a5ce3d98d23cd21987813bcc26542ae7c45f7d36a1b1fd11edd5534fd78c89ef7423a7eb41639578151a6
7
+ data.tar.gz: 84f049762db5b11c6e45dd3ce1f4f8f96c4265e6bf8368930804d816ddeca11e64a7ffd62a4f4b0b5107ced2eb64aec3c0c38bfdbe4a66cac1d492ed5e41cba0
@@ -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)
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module ActiveArchive
4
- VERSION ||= '5.1.0'
4
+ VERSION ||= '5.1.1'
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: active_archive
3
3
  version: !ruby/object:Gem::Version
4
- version: 5.1.0
4
+ version: 5.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Juan Gomez