Module: Sidebars::Concerns::HasActiveRoutes
- Included in:
- Menu
- Defined in:
- lib/sidebars/concerns/has_active_routes.rb
Instance Method Summary collapse
-
#active_routes ⇒ Object
This method will indicate for which paths or controllers, the menu or menu item should be set as active.
Instance Method Details
#active_routes ⇒ Object
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.
13 14 15 |
# File 'lib/sidebars/concerns/has_active_routes.rb', line 13 def active_routes {} end |