database_consistency 1.7.16 → 1.7.17
Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 8218744cf4be81d5348c01ffbb18c545b0c98db3a864575de8046b0c15d43002
|
4
|
+
data.tar.gz: 6a311b65d72845d0bb746d6d93c5f8850e2056202b042a015c4ea900f30c70f4
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 85832321274f953b83db7ca119b07bd812c983adeabf3ce9be69291bd8cbb29afef6630a9e90599be82f40f68538e878f599cdfbdd19e705dd38bba0ee5fd54d
|
7
|
+
data.tar.gz: a5738e4667fabca642f76d0be5dff2618bede457681d6b26cbf16f2b0fdb63fa526c068baf87026d0773c476bcd442a3de70fd119fce9f68e9c60ff2e7bb0fad
|
data/lib/database_consistency/checkers/association_checkers/missing_association_class_checker.rb
CHANGED
@@ -27,10 +27,16 @@ module DatabaseConsistency
|
|
27
27
|
status: status,
|
28
28
|
error_message: nil,
|
29
29
|
error_slug: error_slug,
|
30
|
-
class_name:
|
30
|
+
class_name: class_name,
|
31
31
|
**report_attributes
|
32
32
|
)
|
33
33
|
end
|
34
|
+
|
35
|
+
def class_name
|
36
|
+
association.class_name
|
37
|
+
rescue NoMethodError
|
38
|
+
nil
|
39
|
+
end
|
34
40
|
end
|
35
41
|
end
|
36
42
|
end
|