Allow methods which skip validations in Rubocop

There are plenty of places where we use methods which skip validations for perfectly good reasons...
This commit is contained in:
Matt-Yorkley
2021-12-27 16:36:45 +00:00
parent 482879245f
commit f0f5a1a2da

View File

@@ -19,6 +19,15 @@ AllCops:
#
# Cop settings that have been agreed upon by the OFN community
Rails/SkipsModelValidations:
AllowedMethods:
- "touch"
- "touch_all"
- "update_all"
- "update_attribute"
- "update_column"
- "update_columns"
Style/Documentation:
Enabled: false