summaryrefslogtreecommitdiff
path: root/app/models/concerns/sidebars/has_active_routes.rb
diff options
context:
space:
mode:
Diffstat (limited to 'app/models/concerns/sidebars/has_active_routes.rb')
-rw-r--r--app/models/concerns/sidebars/has_active_routes.rb16
1 files changed, 16 insertions, 0 deletions
diff --git a/app/models/concerns/sidebars/has_active_routes.rb b/app/models/concerns/sidebars/has_active_routes.rb
new file mode 100644
index 00000000000..e7a153f067a
--- /dev/null
+++ b/app/models/concerns/sidebars/has_active_routes.rb
@@ -0,0 +1,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