Commit ef7bfd98 authored by Douglas Barbosa Alexandre's avatar Douglas Barbosa Alexandre
Browse files

Use select instead of pluck on Project.group_ids

parent 3036a736b894
......@@ -390,7 +390,7 @@
end
def group_ids
joins(:namespace).where(namespaces: { type: 'Group' }).pluck(:namespace_id)
joins(:namespace).where(namespaces: { type: 'Group' }).select(:namespace_id)
end
end
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment