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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 842f1272b68cf44dda4f2d804c3722d122aa27e2
4
- data.tar.gz: cb36567dee12c58196a6dee370e9789429fc7b68
3
+ metadata.gz: 74be9dd94ea41db7c24ed37b5097ed0476887ec6
4
+ data.tar.gz: 5459b2d17e1889b4e5a58092882a48978a2dba7c
5
5
  SHA512:
6
- metadata.gz: c5da2c6a12f5b6b571b29bdb50535aea385b75294c3ea1e36e113c5c6daafd8d937bd5f154bcee1158ec255c13cca724e5129487b79548ea2213b28e6c55735f
7
- data.tar.gz: 983e2e54ecbf9e519b5e842c14f5889b4b94a64a36041cd4099373f151720f6fb87040c9a1f09791715f59501a16059884dbdb8c1c36507717cd6192efd4b7fe
6
+ metadata.gz: f5d3c97e628a578c26c1754e90142811e926057cbb9eeb787fc8542041f08677aa0c9ee7d98c635f1bce255f04203ee49cbd7596448e7d901b38b79b82583141
7
+ data.tar.gz: c85daed0feb87534869f842257ff4b31945fce34b9d7582946e785b5cb8f7eb22d2297f60e78679e14bb65a81f2171b1333024a16578d8c8ad5fc88128bd2985
@@ -110,7 +110,7 @@ module ActiveArchive
110
110
 
111
111
  def unarchival
112
112
  [
113
- -> (validate) { unarchive_destroyed_dependent_records(validate) },
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
@@ -1,3 +1,3 @@
1
1
  module ActiveArchive
2
- VERSION = '4.0.4'.freeze
2
+ VERSION = '4.0.5'.freeze
3
3
  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
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-10-19 00:00:00.000000000 Z
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.7
235
+ rubygems_version: 2.6.8
236
236
  signing_key:
237
237
  specification_version: 4
238
238
  summary: Gem for soft-deleting ActiveRecord objects.