summaryrefslogtreecommitdiff
path: root/app/models/sidebars/menu_item.rb
blob: 7466b31898e2de70f89cf1be2848613e0742d2dc (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
# frozen_string_literal: true

module Sidebars
  class MenuItem
    extend ::Gitlab::Utils::Override
    include ::Gitlab::Routing
    include GitlabRoutingHelper
    include Gitlab::Allowable
    include ::Sidebars::HasIcon
    include ::Sidebars::HasHint
    include ::Sidebars::Renderable
    include ::Sidebars::ContainerWithHtmlOptions
    include ::Sidebars::HasActiveRoutes

    attr_reader :context

    def initialize(context)
      @context = context
    end
  end
end