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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 9957577e624c1560404e6435b9713fa24ea54048
4
- data.tar.gz: 2a85513a462e58eaaf81aac60b5074f363914d9b
3
+ metadata.gz: 1d50d572399ef8aad94f755387ef533184f0e388
4
+ data.tar.gz: 8264616bebf8f77d7a69debf55a22ff726e0b785
5
5
  SHA512:
6
- metadata.gz: accc81a71d53bf7e5443ae99a3809593c5f3de4c448f8d800c49d1e7c2b709f146b109039f414b6d5799dcbabbe14bbfb0fd5fb5ed453827586f7f0ad987514e
7
- data.tar.gz: 595a05d2b0e70e6934b0163a61b41f147f152facf670acc781e60f7140d61965dd91a497d3edf8220cfb6d6c34e6c9dbb62465a700f8ca4332466d6821950712
6
+ metadata.gz: f5d2c60138624e372d6d7b3685163981c6b9581ac155f8a64297895af72bc087dbedb6ab83dc4eefdb5ce2659c150b6f0fda11e11c0278cc858976e645908936
7
+ data.tar.gz: be2cae93f19ab0567812f09d05d830454f482b2c5ae0e8906fffcf4f70fe2ec2a13e5d8e73e71ff0e7e3afd28ac24ef70b6efa6b4806a6a0427da3d1c1609f4c
@@ -1,5 +1,5 @@
1
1
  module Mongoid
2
2
  module Archivable
3
- VERSION = "1.4.0"
3
+ VERSION = "1.4.1"
4
4
  end
5
5
  end
@@ -12,7 +12,7 @@ module Mongoid
12
12
  end
13
13
 
14
14
  def original_document
15
- excluded_attributes = %i(_id original_id original_type archived_at)
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.0
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-06 00:00:00.000000000 Z
11
+ date: 2016-02-10 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: mongoid