active_archive 5.1.2 → 5.1.3
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 +0 -9
- data/lib/active_archive/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 6d23424a39f12bb64ff4603262c93d512a24ecc485f56a75884198056d7ef35e
|
4
|
+
data.tar.gz: 3980d7aea94afffd796fabb6b45e74d84f993dd73b9a2c7a92334b1cba957e14
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 1988f797eedd593348c75902709458b70d295cef50f103a896d6f42d22172b13ea1f544fcb2b5498cda0a7f1578a1350f5fa1a6b5d0d5268b87c19108180b035
|
7
|
+
data.tar.gz: a04499ee57797fb8db4a683a42bade7753d92b143df33d0c75e9f5a9d755ba7c2d6c9c806030ea8cd10727ceff0f15e92af8f301df0d6d3f1a48db5d34fda9c6
|
data/lib/active_archive/base.rb
CHANGED
@@ -178,16 +178,7 @@ module ActiveArchive
|
|
178
178
|
|
179
179
|
begin
|
180
180
|
should_ignore_validations?(force) ? record.save(validate: false) : record.save!
|
181
|
-
|
182
|
-
if ::ActiveRecord::VERSION::MAJOR >= 5
|
183
|
-
@previous_mutation_tracker = record.send(:previous_mutation_tracker)
|
184
|
-
elsif ::ActiveRecord::VERSION::MAJOR >= 4
|
185
|
-
@previously_changed = record.instance_variable_get('@previously_changed')
|
186
|
-
end
|
187
|
-
|
188
|
-
@changed_attributes = HashWithIndifferentAccess.new
|
189
181
|
@attributes = record.instance_variable_get('@attributes')
|
190
|
-
@mutation_tracker = nil
|
191
182
|
rescue => error
|
192
183
|
record.destroy
|
193
184
|
raise(error)
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: active_archive
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 5.1.
|
4
|
+
version: 5.1.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Juan Gomez
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2018-
|
11
|
+
date: 2018-06-04 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|