rubocop-nueca 1.1.3 → 1.1.4
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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 0b98f767dd653eaae37a3d6f45edafb1434f096bd0278a20639f254fa1cf2bd1
|
4
|
+
data.tar.gz: c905f9858e98c95c71eddcbb6d8039beae354618257d1526c4199c04da3dba59
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 4b7ae1a86b531b5847e8554a767631cae2277f2773379cf0e63fc133e8b0938a61f28b7c6da0c5bb2b5bb4419c0776d70ad36ca83697cbfef794a08eb0d77c89
|
7
|
+
data.tar.gz: c65696377777f5e0740e1776d6bf72ec57408524448ccac2bfedee5361bd14d934121a78db4d65644fe1b27ebee0f9d2ef5752d9931607f3cdb5d703d41c86a7
|
@@ -118,7 +118,7 @@ module RuboCop
|
|
118
118
|
end
|
119
119
|
|
120
120
|
def build_association_lookup(associations)
|
121
|
-
associations.
|
121
|
+
associations.each_with_object({}) { |assoc, lookup| lookup[assoc[:name]] = assoc } # rubocop:disable Rails/IndexBy
|
122
122
|
end
|
123
123
|
|
124
124
|
def build_dependency_graph(associations, lookup)
|