summaryrefslogtreecommitdiff
path: root/app/models
diff options
context:
space:
mode:
Diffstat (limited to 'app/models')
-rw-r--r--app/models/group.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/models/group.rb b/app/models/group.rb
index 50c949d84aa..21c9047c98a 100644
--- a/app/models/group.rb
+++ b/app/models/group.rb
@@ -199,6 +199,6 @@ class Group < Namespace
end
def users_with_parents
- User.where(id: members_with_parents.pluck(:user_id))
+ User.where(id: members_with_parents.select(:user_id))
end
end