diff options
Diffstat (limited to 'app/models/namespaces/traversal/recursive_scopes.rb')
-rw-r--r-- | app/models/namespaces/traversal/recursive_scopes.rb | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/app/models/namespaces/traversal/recursive_scopes.rb b/app/models/namespaces/traversal/recursive_scopes.rb index 583c53f8221..c6f09a4d134 100644 --- a/app/models/namespaces/traversal/recursive_scopes.rb +++ b/app/models/namespaces/traversal/recursive_scopes.rb @@ -53,6 +53,11 @@ module Namespaces self_and_descendants(include_self: include_self).as_ids end alias_method :recursive_self_and_descendant_ids, :self_and_descendant_ids + + def self_and_hierarchy + Gitlab::ObjectHierarchy.new(all).all_objects + end + alias_method :recursive_self_and_hierarchy, :self_and_hierarchy end end end |