activerecord_uml 0.8.0 → 0.9.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/activerecord_uml/diagram_drawer.rb +3 -3
- data/lib/activerecord_uml/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 1b7b698036a7de92dbddb185bd926ba6b217a81e6a327c640b1b32d42f307e2b
|
4
|
+
data.tar.gz: 3fe7ceea6496984fa9a6ceb793ba25eb364d996d071741c056c8d45373c95b2b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: b98c294a19a863046f62c106551361fd2966e027204c6be380d6e987577d21992246476d693d68484d267d093dd3d33aa653fd738f8e402c41d0b19ac6af2545
|
7
|
+
data.tar.gz: 7d43a94fd8ba024423521eb085494e1ff98266b107c3d361f01e95f53883f61b2620a1451c7705f315accc6db0f204dc8f3e5ef763855a4d17a98bfae1a68188
|
@@ -28,11 +28,11 @@ EOF
|
|
28
28
|
|
29
29
|
def relations
|
30
30
|
@class_name.reflect_on_all_associations(:belongs_to).map do |a|
|
31
|
-
"#{a.
|
31
|
+
"#{a.class_name} --* #{@class_name}"
|
32
32
|
end.concat(@class_name.reflect_on_all_associations(:has_many).map do |a|
|
33
|
-
"#{@class_name} --* #{a.
|
33
|
+
"#{@class_name} --* #{a.class_name}"
|
34
34
|
end).concat(@class_name.reflect_on_all_associations(:has_one).map do |a|
|
35
|
-
"#{@class_name} --* #{a.
|
35
|
+
"#{@class_name} --* #{a.class_name}"
|
36
36
|
end)
|
37
37
|
end
|
38
38
|
|