config/rails.yml in rubocop-govuk-3.11.0 vs config/rails.yml in rubocop-govuk-3.12.0
- old
+ new
@@ -25,5 +25,18 @@
# no efficient alternative. Instead, we should only enable
# this Cop for methods that have a clear alternative.
Rails/SkipsModelValidations:
Blacklist:
- update_attribute
+
+# While using has_many/through does have some advantages,
+# it also requires a significant amount of boilerplate code:
+#
+# - An additional 'has_many :join_table' statement
+# - An additional class for the join table (model)
+#
+# This Cop/rule appears to have been written with the
+# assumption that all join tables have inherent meaning,
+# we want to represent, which is not the case; sometimes
+# relationships are just # many-to-many, and that's it.
+Rails/HasAndBelongsToMany:
+ Enabled: false