Commit 2f3b18e0 authored by Robert Speicher's avatar Robert Speicher

Resolve lib/gitlab/group_hierarchy.rb

parent 5816c292
...@@ -36,15 +36,12 @@ module Gitlab ...@@ -36,15 +36,12 @@ module Gitlab
base_and_ancestors(upto: upto).where.not(id: ancestors_base.select(:id)) base_and_ancestors(upto: upto).where.not(id: ancestors_base.select(:id))
end end
# rubocop: enable CodeReuse/ActiveRecord # rubocop: enable CodeReuse/ActiveRecord
<<<<<<< HEAD
# rubocop: disable CodeReuse/ActiveRecord # rubocop: disable CodeReuse/ActiveRecord
def roots def roots
base_and_ancestors.where(namespaces: { parent_id: nil }) base_and_ancestors.where(namespaces: { parent_id: nil })
end end
# rubocop: enable CodeReuse/ActiveRecord # rubocop: enable CodeReuse/ActiveRecord
=======
>>>>>>> upstream/master
# Returns a relation that includes the ancestors_base set of groups # Returns a relation that includes the ancestors_base set of groups
# and all their ancestors (recursively). # and all their ancestors (recursively).
......
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