Welcome to mirror list, hosted at ThFree Co, Russian Federation.

work_items_hierarchy.rb « concerns « controllers « app - gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 6008256408c487b02bf087361f85f1e4044e49e0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
# frozen_string_literal: true

module WorkItemsHierarchy
  extend ActiveSupport::Concern

  # rubocop:disable Gitlab/ModuleWithInstanceVariables
  def planning_hierarchy
    return render_404 unless Feature.enabled?(:work_items_hierarchy, @project, default_enabled: :yaml)

    render 'shared/planning_hierarchy'
  end
  # rubocop:enable Gitlab/ModuleWithInstanceVariables
end

WorkItemsHierarchy.prepend_mod_with('WorkItemsHierarchy')