mongoa 0.1.4 → 0.1.5
Sign up to get free protection for your applications and to get access to all the features.
- data/VERSION +1 -1
- data/lib/mongoa/mongo_mapper/association_matcher.rb +1 -3
- data/mongoa.gemspec +1 -1
- metadata +2 -2
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.1.
|
1
|
+
0.1.5
|
@@ -28,9 +28,7 @@ module Mongoa
|
|
28
28
|
end
|
29
29
|
@subject = subject
|
30
30
|
result = (association_exists? && macro_correct?)
|
31
|
-
if result && macro == :belongs_to
|
32
|
-
result = foreign_key_exists?
|
33
|
-
end
|
31
|
+
result = foreign_key_exists? if result && macro == :belongs_to && !subject.class.embeddable?
|
34
32
|
result
|
35
33
|
end
|
36
34
|
|
data/mongoa.gemspec
CHANGED