summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDouglas Barbosa Alexandre <dbalexandre@gmail.com>2016-10-28 16:20:46 -0200
committerDouglas Barbosa Alexandre <dbalexandre@gmail.com>2016-10-31 23:27:49 -0200
commit37cb2e7868b6551c009793d0c6e273efb5c10ed9 (patch)
tree8f9ab49c2341474db3de7f939e8b631ef3a37390
parentadb8b8285818fe01294a56d1214c00fe70144a9a (diff)
downloadgitlab-ce-37cb2e7868b6551c009793d0c6e273efb5c10ed9.tar.gz
Use select instead of pluck on Project.group_ids
-rw-r--r--app/models/project.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/models/project.rb b/app/models/project.rb
index ae57815c620..9f9f14d53db 100644
--- a/app/models/project.rb
+++ b/app/models/project.rb
@@ -390,7 +390,7 @@ class Project < ActiveRecord::Base
end
def group_ids
- joins(:namespace).where(namespaces: { type: 'Group' }).pluck(:namespace_id)
+ joins(:namespace).where(namespaces: { type: 'Group' }).select(:namespace_id)
end
end