Skip to content
Snippets Groups Projects
Verified Commit 9f39953e authored by Dmitriy Zaporozhets's avatar Dmitriy Zaporozhets
Browse files

Improve Group#users_with_parents method

parent 7b4b3d5f
No related branches found
No related tags found
No related merge requests found
Loading
@@ -199,6 +199,6 @@ class Group < Namespace
Loading
@@ -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
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment