active_archive 4.0.4 → 4.0.5
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/table_definition.rb +2 -1
- data/lib/active_archive/version.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 74be9dd94ea41db7c24ed37b5097ed0476887ec6
|
4
|
+
data.tar.gz: 5459b2d17e1889b4e5a58092882a48978a2dba7c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f5d3c97e628a578c26c1754e90142811e926057cbb9eeb787fc8542041f08677aa0c9ee7d98c635f1bce255f04203ee49cbd7596448e7d901b38b79b82583141
|
7
|
+
data.tar.gz: c85daed0feb87534869f842257ff4b31945fce34b9d7582946e785b5cb8f7eb22d2297f60e78679e14bb65a81f2171b1333024a16578d8c8ad5fc88128bd2985
|
data/lib/active_archive/base.rb
CHANGED
@@ -110,7 +110,7 @@ module ActiveArchive
|
|
110
110
|
|
111
111
|
def unarchival
|
112
112
|
[
|
113
|
-
->
|
113
|
+
->(validate) { unarchive_destroyed_dependent_records(validate) },
|
114
114
|
lambda do |validate|
|
115
115
|
run_callbacks(:unarchive) do
|
116
116
|
set_archived_at(nil, validate)
|
@@ -3,12 +3,13 @@ module ActiveArchive
|
|
3
3
|
|
4
4
|
def timestamps(*args)
|
5
5
|
options = args.extract_options!
|
6
|
-
options[:null] = false if options[:null].nil?
|
7
6
|
|
8
7
|
column(:created_at, :datetime, options)
|
9
8
|
column(:updated_at, :datetime, options)
|
10
9
|
|
11
10
|
return unless ActiveArchive::Settings.config.all_records_archivable == true
|
11
|
+
return if options[:skip]
|
12
|
+
|
12
13
|
options[:null] = true
|
13
14
|
column(:archived_at, :datetime, options)
|
14
15
|
end
|
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: 4.0.
|
4
|
+
version: 4.0.5
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Juan Gomez
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2016-
|
11
|
+
date: 2016-12-15 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|
@@ -232,7 +232,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
232
232
|
version: '0'
|
233
233
|
requirements: []
|
234
234
|
rubyforge_project:
|
235
|
-
rubygems_version: 2.6.
|
235
|
+
rubygems_version: 2.6.8
|
236
236
|
signing_key:
|
237
237
|
specification_version: 4
|
238
238
|
summary: Gem for soft-deleting ActiveRecord objects.
|