diff options
author | Douglas Barbosa Alexandre <dbalexandre@gmail.com> | 2016-10-28 16:20:46 -0200 |
---|---|---|
committer | Douglas Barbosa Alexandre <dbalexandre@gmail.com> | 2016-10-31 23:27:49 -0200 |
commit | 37cb2e7868b6551c009793d0c6e273efb5c10ed9 (patch) | |
tree | 8f9ab49c2341474db3de7f939e8b631ef3a37390 | |
parent | adb8b8285818fe01294a56d1214c00fe70144a9a (diff) | |
download | gitlab-ce-37cb2e7868b6551c009793d0c6e273efb5c10ed9.tar.gz |
Use select instead of pluck on Project.group_ids
-rw-r--r-- | app/models/project.rb | 2 |
1 files changed, 1 insertions, 1 deletions
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 |