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

static_menu.rb « sidebars « lib - gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: b7ba69b1717542bb45150844d66906f5d1b9d370 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
# frozen_string_literal: true

module Sidebars
  # This is a special menu which does not serialize as
  # a section and instead hoists all of menu items
  # to be top-level items
  class StaticMenu < ::Sidebars::Menu
    override :serialize_for_super_sidebar
    def serialize_for_super_sidebar
      serialize_items_for_super_sidebar
    end
  end
end