Commit 595f44b2 authored by Gabriel Mazetto's avatar Gabriel Mazetto

Whitelist rubocop CodeReuse/ActiveRecord usage (not activerecord)

parent 5ac9bdc7
......@@ -8,10 +8,12 @@ module MergeRequests
# We apply a limitation to the amount of elements that can be part of the filter condition
MAX_FILTER_ELEMENTS = 5
# rubocop:disable CodeReuse/ActiveRecord
def initialize(usernames, ids)
@usernames = Array(usernames).map(&:to_s).uniq.take(MAX_FILTER_ELEMENTS)
@ids = Array(ids).uniq.take(MAX_FILTER_ELEMENTS)
end
# rubocop:enable CodeReuse/ActiveRecord
def execute(items)
if by_no_approvals?
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment