active_archive 2.2.0 → 2.2.1
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/table_definition.rb +2 -4
- data/lib/active_archive/version.rb +1 -1
- data/lib/active_archive.rb +6 -5
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: b6c5b66ab822e182433f4ef89c210c0affd61e9b
|
4
|
+
data.tar.gz: dcc151f783bd249bb9eec545f5fca580178c8ed2
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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
|
-
|
7
|
-
|
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)
|
data/lib/active_archive.rb
CHANGED
@@ -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.
|
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-
|
11
|
+
date: 2015-08-26 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|