debian-mirror-gitlab/lib/sidebars/static_menu.rb
2023-05-27 22:25:52 +05:30

13 lines
353 B
Ruby

# 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