Commit 37cb2e78 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 @@ def cached_count
end
def group_ids
joins(:namespace).where(namespaces: { type: 'Group' }).pluck(:namespace_id)
joins(:namespace).where(namespaces: { type: 'Group' }).select(:namespace_id)
end
end
......
Markdown is supported
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