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: