mongoid-archivable 1.4.0 → 1.4.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/mongoid/archivable/version.rb +1 -1
- data/lib/mongoid/archivable.rb +2 -2
- 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: 1d50d572399ef8aad94f755387ef533184f0e388
|
4
|
+
data.tar.gz: 8264616bebf8f77d7a69debf55a22ff726e0b785
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f5d2c60138624e372d6d7b3685163981c6b9581ac155f8a64297895af72bc087dbedb6ab83dc4eefdb5ce2659c150b6f0fda11e11c0278cc858976e645908936
|
7
|
+
data.tar.gz: be2cae93f19ab0567812f09d05d830454f482b2c5ae0e8906fffcf4f70fe2ec2a13e5d8e73e71ff0e7e3afd28ac24ef70b6efa6b4806a6a0427da3d1c1609f4c
|
data/lib/mongoid/archivable.rb
CHANGED
@@ -12,7 +12,7 @@ module Mongoid
|
|
12
12
|
end
|
13
13
|
|
14
14
|
def original_document
|
15
|
-
excluded_attributes = %
|
15
|
+
excluded_attributes = %w(_id original_id original_type archived_at)
|
16
16
|
original_class_name.constantize.new(attributes.except(*excluded_attributes)) do |doc|
|
17
17
|
doc.id = original_id
|
18
18
|
end
|
@@ -36,7 +36,7 @@ module Mongoid
|
|
36
36
|
include Mongoid::Document
|
37
37
|
include Mongoid::Attributes::Dynamic
|
38
38
|
include Mongoid::Archivable::Restoration
|
39
|
-
|
39
|
+
|
40
40
|
field :archived_at, type: Time
|
41
41
|
field :original_id, type: String
|
42
42
|
field :original_type, type: String
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: mongoid-archivable
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.4.
|
4
|
+
version: 1.4.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Joost Baaij
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2016-02-
|
11
|
+
date: 2016-02-10 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: mongoid
|