lib/simple_navigation/controller_methods.rb in andi-simple-navigation-1.3.1 vs lib/simple_navigation/controller_methods.rb in andi-simple-navigation-1.4.0
- old
+ new
@@ -26,14 +26,14 @@
# class AccountController << ActionController
# navigation :account
#
# def your_special_action
# ...
- # current_navigation :special
+ # current_navigation :account, :special
# end
# end
#
- # This overrides :account as active navigation for your_special_action and sets it to :special.
+ # The code above still sets the active primary navigation to :account but also sets the sub_navigation to :special for 'your_special_action'.
#
# Note: The specified symbols must match the keys for your navigation items in your config/navigation.rb file.
module ControllerMethods
def self.included(base) #:nodoc:
base.class_eval do
\ No newline at end of file