Commit 9f39953e authored by Dmitriy Zaporozhets's avatar Dmitriy Zaporozhets

Improve Group#users_with_parents method

Signed-off-by: default avatarDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
parent 7b4b3d5f
...@@ -199,6 +199,6 @@ class Group < Namespace ...@@ -199,6 +199,6 @@ class Group < Namespace
end end
def users_with_parents def users_with_parents
User.where(id: members_with_parents.pluck(:user_id)) User.where(id: members_with_parents.select(:user_id))
end end
end end
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment