From 37cb2e7868b6551c009793d0c6e273efb5c10ed9 Mon Sep 17 00:00:00 2001 From: Douglas Barbosa Alexandre Date: Fri, 28 Oct 2016 16:20:46 -0200 Subject: [PATCH] Use select instead of pluck on Project.group_ids --- app/models/project.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 -- GitLab