提交 37cb2e78 编写于 作者: D Douglas Barbosa Alexandre

Use select instead of pluck on Project.group_ids

上级 adb8b828
......@@ -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
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册