Module SimpleNavigation::ControllerMethods::ClassMethods
In: lib/simple_navigation/rails_controller_methods.rb

Methods

Public Instance methods

Sets the active navigation for all actions in this controller.

The specified symbol must match the keys for your navigation items in your config/navigation.rb file.

[Source]

# File lib/simple_navigation/rails_controller_methods.rb, line 103
      def navigation(*args)
        self.class_eval do
          define_method :sn_set_navigation do
            current_navigation(*args)
          end
          protected :sn_set_navigation
          before_filter :sn_set_navigation
        end
      end

[Validate]