Skip to content
Snippets Groups Projects
Commit 37cb2e78 authored by Douglas Barbosa Alexandre's avatar Douglas Barbosa Alexandre
Browse files

Use select instead of pluck on Project.group_ids

parent adb8b828
No related branches found
No related tags found
No related merge requests found
Loading
Loading
@@ -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
 
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment