depend_lister 0.1.1 → 0.1.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/depend_lister/belong.rb +2 -2
- data/lib/depend_lister/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: 820e19383a7cb36d4091bf4855e28b174ce5ec6816e71d10288efc61210c172d
|
4
|
+
data.tar.gz: b660f88b187688b9636efa909f7a4fe488689813593af0fe3bf282384f42a122
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 3318d943f2e8f6eec67c0dc71b405f8081d27968b7cb46a63c58a9ff9285dc5b44ace034aa377b084c71e7e61a37c9e8859fb3e4cb2ce97e0f0a667d65a10a30
|
7
|
+
data.tar.gz: 79d7afeb2555cc9c0fd3bf91309b790772e38760884ae254d8590da327ffc0195302bb11d6a3b7e8615952cbf0725d669b047820c7825fe2f420d52996dd6345
|
data/lib/depend_lister/belong.rb
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
class Belong
|
2
2
|
# Generates the hash(key: table name, value: belongs_to point table name).
|
3
|
-
def
|
3
|
+
def make_table_belongs_hash
|
4
4
|
# Generates the hash(key: table name, value: model).
|
5
5
|
table_model_hash = to_table_model_hash
|
6
6
|
|
@@ -19,7 +19,7 @@ class Belong
|
|
19
19
|
private
|
20
20
|
|
21
21
|
# Generates the hash(key: table name, value: model name).
|
22
|
-
def
|
22
|
+
def to_table_model_hash
|
23
23
|
tables = gain_tables
|
24
24
|
models = to_models(tables)
|
25
25
|
Hash[*tables.zip(models).flatten]
|