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

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

module Sidebars
  module HasActiveRoutes
    # This method will indicate for which paths or
    # controllers, the menu or menu item should
    # be set as active.
    #
    # The returned values are passed to the `nav_link` helper method,
    # so the params can be either `path`, `page`, `controller`.
    # Param 'action' is not supported.
    def active_routes
      {}
    end
  end
end