Module: SimpleNavigation::ControllerMethods::InstanceMethods
- Defined in:
- lib/simple_navigation/rails_controller_methods.rb
Instance Method Summary collapse
-
#current_navigation(*args) ⇒ Object
Sets the active navigation.
Instance Method Details
#current_navigation(*args) ⇒ Object
Sets the active navigation. Call this method in any action to override the controller-wide active navigation specified by navigation.
The specified symbol must match the keys for your navigation items in your config/navigation.rb file.
119 120 121 |
# File 'lib/simple_navigation/rails_controller_methods.rb', line 119 def (*args) @sn_current_navigation_args = args end |