Improve Group#users_with_parents method
Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
This commit is contained in:
parent
7b4b3d5f26
commit
9f39953eaf
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue