diff options
author | Douglas Barbosa Alexandre <dbalexandre@gmail.com> | 2018-10-31 20:39:24 +0300 |
---|---|---|
committer | Douglas Barbosa Alexandre <dbalexandre@gmail.com> | 2018-10-31 21:46:36 +0300 |
commit | 01d8c1f6f0dacbb8d4779d0226e1c02eb11dfe0e (patch) | |
tree | 1950593b9f18354a3dfeb0a1f76c99026bee498c /lib/gitlab/user_extractor.rb | |
parent | fc892db6f02c992bef32bf994a694efd5205f61b (diff) |
Whitelist none method from ActiveRecord::Querying
Diffstat (limited to 'lib/gitlab/user_extractor.rb')
-rw-r--r-- | lib/gitlab/user_extractor.rb | 2 |
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] |