active_archive 2.2.0 → 2.2.1

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
  SHA1:
3
- metadata.gz: 386b701708a6cde96832ecb4ad71beedfd20c2cf
4
- data.tar.gz: a2809814e4047a00a868b0fda1578338e2453d5e
3
+ metadata.gz: b6c5b66ab822e182433f4ef89c210c0affd61e9b
4
+ data.tar.gz: dcc151f783bd249bb9eec545f5fca580178c8ed2
5
5
  SHA512:
6
- metadata.gz: e25c1440552a830ff42adaaf2fbd1c542a75e3e5a09549b9520b915f1640d64d469bd4cb384dabcdfcf855eb33ece9b3ae5311f14e398729e506dfb048346ed1
7
- data.tar.gz: 7c2ba80e1ccaf2f338dee0dfec1df7357c83c86e7c63b2bc805d75f9162a2b24eff4e76c49be4543a44e2e26125f078949f581b75952d419d5be450c12f495e7
6
+ metadata.gz: a85b59a42f1dcc3925b5f9cbb3d90cb811bd5991538fe142a51a4c3d6c5865a4f134ecb3ed68d3ce1e0b21e45f4d947ac81b90b411ff74c9c66d1d8b07a7a5ea
7
+ data.tar.gz: a6afb21481f4c857c1f40a108dcb1ec2887c2079145e1b2a5ce699bb380176cc712ca05d5921c11142fefba9927549665142dc4a8965aa644d9f2be780ac94e1
@@ -3,10 +3,8 @@ module ActiveRecord
3
3
  class TableDefinition
4
4
 
5
5
  def timestamps_with_archived_at(options)
6
- if ActiveArchive.configuration.all_records_archivable
7
- timestamps_without_archived_at(options)
8
- column(:archived_at, :datetime)
9
- end
6
+ timestamps_without_archived_at(options)
7
+ column(:archived_at, :datetime) if ActiveArchive.configuration.all_records_archivable
10
8
  end
11
9
 
12
10
  alias_method_chain(:timestamps, :archived_at)
@@ -1,3 +1,3 @@
1
1
  module ActiveArchive
2
- VERSION = "2.2.0"
2
+ VERSION = "2.2.1"
3
3
  end
@@ -1,10 +1,5 @@
1
1
  require "active_archive/version"
2
2
  require "active_archive/configuration"
3
- require "active_archive/table_definition"
4
- require "active_archive/methods"
5
- require "active_archive/scopes"
6
- require "active_archive/base"
7
- require "generators/active_archive/install_generator"
8
3
 
9
4
  module ActiveArchive
10
5
 
@@ -26,6 +21,12 @@ module ActiveArchive
26
21
 
27
22
  end
28
23
 
24
+ require "active_archive/table_definition"
25
+ require "active_archive/methods"
26
+ require "active_archive/scopes"
27
+ require "active_archive/base"
28
+ require "generators/active_archive/install_generator"
29
+
29
30
  ActiveRecord::Base.send(:include, ActiveArchive::Base)
30
31
 
31
32
  if defined?(Rails)
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: 2.2.0
4
+ version: 2.2.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Juan Gomez
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2015-08-22 00:00:00.000000000 Z
11
+ date: 2015-08-26 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails