database_consistency 1.7.16 → 1.7.17

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 7810c3d79fabe92ab306c6bc2ba2fc28ddb845ae9421bdb9b63fcfdd623ef0d2
4
- data.tar.gz: 8389fdc6eaac992ea49819db6ac481123320b5763229d972e7bfac075a375548
3
+ metadata.gz: 8218744cf4be81d5348c01ffbb18c545b0c98db3a864575de8046b0c15d43002
4
+ data.tar.gz: 6a311b65d72845d0bb746d6d93c5f8850e2056202b042a015c4ea900f30c70f4
5
5
  SHA512:
6
- metadata.gz: ed41b201b6748e86a6bdeefd62e3704f6a44caf62b7797c118800800c8644c4fdc7f25f6e16362f02e321f7ba64f7c0819fa9ed4d7e48eb4d04e03cf481fc069
7
- data.tar.gz: 6b1ae42b9a3ad7aae6a9d05e6b078641d4c14d35245635defa7a545fb3cd43eac6cda9c6babdcb2994cc992b140beed49acebceeb83480f0c76297c6e3e02924
6
+ metadata.gz: 85832321274f953b83db7ca119b07bd812c983adeabf3ce9be69291bd8cbb29afef6630a9e90599be82f40f68538e878f599cdfbdd19e705dd38bba0ee5fd54d
7
+ data.tar.gz: a5738e4667fabca642f76d0be5dff2618bede457681d6b26cbf16f2b0fdb63fa526c068baf87026d0773c476bcd442a3de70fd119fce9f68e9c60ff2e7bb0fad
@@ -27,10 +27,16 @@ module DatabaseConsistency
27
27
  status: status,
28
28
  error_message: nil,
29
29
  error_slug: error_slug,
30
- class_name: association.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
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module DatabaseConsistency
4
- VERSION = '1.7.16'
4
+ VERSION = '1.7.17'
5
5
  end
@@ -7,7 +7,7 @@ module DatabaseConsistency
7
7
  private
8
8
 
9
9
  def template
10
- 'refers to undefined model "%<class_name>s"'
10
+ 'refers to undefined model %<class_name>s'
11
11
  end
12
12
 
13
13
  def unique_attributes
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: database_consistency
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.7.16
4
+ version: 1.7.17
5
5
  platform: ruby
6
6
  authors:
7
7
  - Evgeniy Demin