From dffc045deb58a6dbd43d6e6cbc9028b5d8a7ba3c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Oliver=20G=C3=BCnther?= Date: Mon, 19 Aug 2024 08:23:12 +0200 Subject: [PATCH] Allow reorder on FindEach cop --- .rubocop.yml | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/.rubocop.yml b/.rubocop.yml index addb52904d6..821c3902e52 100644 --- a/.rubocop.yml +++ b/.rubocop.yml @@ -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: