Allow reorder on FindEach cop

This commit is contained in:
Oliver Günther
2024-08-19 08:23:12 +02:00
parent 55a5fcda51
commit dffc045deb
+9
View File
@@ -211,6 +211,15 @@ Rails/DynamicFindBy:
Whitelist:
- find_by_login
# Allow reorder to prevent find each cop triggering
Rails/FindEach:
AllowedMethods:
- order
- reorder
- limit
- select
- lock
# We have config.active_record.belongs_to_required_by_default = false ,
# which means, we do have to declare presence validators on belongs_to relations.
Rails/RedundantPresenceValidationOnBelongsTo: