active_archive 5.1.5 → 5.1.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 072ed65a31062a4db0c88627cb8f9022480a6c7d068ad782394afad632c6f35d
4
- data.tar.gz: 18f91cd29db6311a8b294cabeb64fd5058aef1c3e4b695426f85a26bf29b126f
3
+ metadata.gz: 555d9d57a382834f8bc0239cf34646854b79f8db49a6db615542107342d87507
4
+ data.tar.gz: 9c36c1db3a8b015787649f77d221437560216ac2667a3c21d0ba98241fe70e90
5
5
  SHA512:
6
- metadata.gz: 761e73ab87cf0d2956f5b7ce12b36e2017d1e50931782fa922bf627d3f8c4d719090a5a9c16aa1449de19f2dcd28e1de7fc2b318375e9c70d9c0aac6eaff75ed
7
- data.tar.gz: 013bdda8bbe05ef240538a314dd1c96d4a72f9380fada9763a7b56e02c5acb234a4284a2e22b4ff71f9cd403e6e018ce307cb3f30d3c4b2a112529d0f8a52187
6
+ metadata.gz: 99c176eebbe41ad48670a6966c9fcb56d8e40cfa231fa2bd3385bdcbfd7f9a12b90fac41e70b9a43c02c2581090fb18cb37b6c87df09a693d57a9f523c3ecb2f
7
+ data.tar.gz: 50ecdadab9a70583618bf09bd6d5eb486f08ac215916e5deac94bbe0842a5787bcf019a0607653837179f79eab02c79190a326996dd09a033a1174be69d013e2
@@ -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(:mutations_before_last_save)
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
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module ActiveArchive
4
- VERSION ||= '5.1.5'
4
+ VERSION ||= '5.1.6'
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.5
4
+ version: 5.1.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - Juan Gomez