Improve Group#users_with_parents method

Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
This commit is contained in:
Dmitriy Zaporozhets 2016-12-29 00:29:33 +02:00
parent 7b4b3d5f26
commit 9f39953eaf
No known key found for this signature in database
GPG Key ID: 627C5F589F467F17
1 changed files with 1 additions and 1 deletions

View File

@ -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