summaryrefslogtreecommitdiff
path: root/app/models/group.rb
diff options
context:
space:
mode:
authorDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>2017-03-15 16:09:53 +0200
committerDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>2017-03-21 11:00:06 +0200
commite8942846c656d95d58d283db88c481a6a97face4 (patch)
tree11bbd1b36899745c7b797a101d35581303b38440 /app/models/group.rb
parentf592cae12992f86d711973a82296abfd7bf05bc4 (diff)
downloadgitlab-ce-e8942846c656d95d58d283db88c481a6a97face4.tar.gz
Hide ancestor groups in the share group dropdown listdz-hide-share-group-ancestors
Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
Diffstat (limited to 'app/models/group.rb')
-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 bd0ecae3da4..60274386103 100644
--- a/app/models/group.rb
+++ b/app/models/group.rb
@@ -207,7 +207,7 @@ class Group < Namespace
end
def members_with_parents
- GroupMember.non_request.where(source_id: ancestors.map(&:id).push(id))
+ GroupMember.non_request.where(source_id: ancestors.pluck(:id).push(id))
end
def users_with_parents