summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorDouglas Barbosa Alexandre <dbalexandre@gmail.com>2018-10-31 14:39:24 -0300
committerDouglas Barbosa Alexandre <dbalexandre@gmail.com>2018-10-31 15:46:36 -0300
commit01d8c1f6f0dacbb8d4779d0226e1c02eb11dfe0e (patch)
tree1950593b9f18354a3dfeb0a1f76c99026bee498c /lib
parentfc892db6f02c992bef32bf994a694efd5205f61b (diff)
downloadgitlab-ce-01d8c1f6f0dacbb8d4779d0226e1c02eb11dfe0e.tar.gz
Whitelist none method from ActiveRecord::Queryingda-rubocop-whitelist-active-record-none
Diffstat (limited to 'lib')
-rw-r--r--lib/gitlab/user_extractor.rb2
1 files changed, 0 insertions, 2 deletions
diff --git a/lib/gitlab/user_extractor.rb b/lib/gitlab/user_extractor.rb
index bd0d24e4369..9abd64c2250 100644
--- a/lib/gitlab/user_extractor.rb
+++ b/lib/gitlab/user_extractor.rb
@@ -14,13 +14,11 @@ module Gitlab
@text = text
end
- # rubocop: disable CodeReuse/ActiveRecord
def users
return User.none unless @text.present?
@users ||= User.from_union(union_relations)
end
- # rubocop: enable CodeReuse/ActiveRecord
def usernames
matches[:usernames]