universe_compiler 0.3.1 → 0.3.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/lib/universe_compiler/utils/graphviz.rb +2 -2
- data/lib/universe_compiler/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 0c3c0569c71c1313f07e003b124ecd2d54da1d59
|
|
4
|
+
data.tar.gz: a3451f49670fb9502d65f83e6e38734d263b60fa
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 6b094768cfd07cf42e638d7a062f543785cdeacbfe755b950f582477e37b3a03038e4367a42e6ef212029cf779f1e10a49ef65a2a3de575c9458c674da38180a
|
|
7
|
+
data.tar.gz: 4c11aa5563182cb1b374d6bfb6e7223f4f95ac4d3e986b157ef26870e7b92bb10f5c4a38953f92024724e3048e673c90eb24e6e4fb35158031e9a57e6c354e4d
|
|
@@ -30,10 +30,10 @@ module UniverseCompiler
|
|
|
30
30
|
case constraint_name
|
|
31
31
|
when :has_one
|
|
32
32
|
target = entity[field_name]
|
|
33
|
-
g.add_edges cache[:by_entity][entity], cache[:by_entity][target]
|
|
33
|
+
g.add_edges cache[:by_entity][entity], cache[:by_entity][target] if entities.include? target
|
|
34
34
|
when :has_many
|
|
35
35
|
entity[field_name].each do |target|
|
|
36
|
-
g.add_edges cache[:by_entity][entity], cache[:by_entity][target]
|
|
36
|
+
g.add_edges cache[:by_entity][entity], cache[:by_entity][target] if entities.include? target
|
|
37
37
|
end
|
|
38
38
|
end
|
|
39
39
|
end
|