mongoid_includes 1.1.1 → 1.1.2

Sign up to get free protection for your applications and to get access to all the features.
@@ -6,7 +6,12 @@ class Game
6
6
  field :name
7
7
 
8
8
  belongs_to :person, index: true, validate: true
9
- belongs_to :parent, class_name: "Game", foreign_key: "parent-id"
9
+
10
+ if Mongoid::VERSION >= "6.0.0"
11
+ belongs_to :parent, class_name: "Game", foreign_key: "parent-id", optional: true
12
+ else
13
+ belongs_to :parent, class_name: "Game", foreign_key: "parent-id"
14
+ end
10
15
 
11
16
  accepts_nested_attributes_for :person
12
17
 
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: mongoid_includes
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.1.1
4
+ version: 1.1.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Máximo Mussini
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-01-12 00:00:00.000000000 Z
11
+ date: 2016-05-26 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: mongoid
@@ -19,7 +19,7 @@ dependencies:
19
19
  version: 4.0.0
20
20
  - - "<"
21
21
  - !ruby/object:Gem::Version
22
- version: 6.0.0
22
+ version: 7.0.0
23
23
  type: :runtime
24
24
  prerelease: false
25
25
  version_requirements: !ruby/object:Gem::Requirement
@@ -29,7 +29,7 @@ dependencies:
29
29
  version: 4.0.0
30
30
  - - "<"
31
31
  - !ruby/object:Gem::Version
32
- version: 6.0.0
32
+ version: 7.0.0
33
33
  description: Mongoid::Includes improves eager loading in Mongoid, supporting polymorphic
34
34
  associations, and up to two-levels of eager loading.
35
35
  email: