Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'lib/gitlab/user_extractor.rb')
-rw-r--r--lib/gitlab/user_extractor.rb2
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/gitlab/user_extractor.rb b/lib/gitlab/user_extractor.rb
index 3ede0a5b5e6..09652a4fb5e 100644
--- a/lib/gitlab/user_extractor.rb
+++ b/lib/gitlab/user_extractor.rb
@@ -14,11 +14,13 @@ module Gitlab
@text = text
end
+ # rubocop: disable CodeReuse/ActiveRecord
def users
return User.none unless @text.present?
@users ||= User.from("(#{union.to_sql}) users")
end
+ # rubocop: enable CodeReuse/ActiveRecord
def usernames
matches[:usernames]