Module: ActionNav::ControllerExtension

Defined in:
lib/action_nav/controller_extension.rb

Class Method Summary collapse

Instance Method Summary collapse

Class Method Details

.included(base) ⇒ Object



6
7
8
9
10
# File 'lib/action_nav/controller_extension.rb', line 6

def self.included(base)
  base.class_eval do
    helper_method :navigation if respond_to?(:helper_method)
  end
end

Instance Method Details



12
13
14
# File 'lib/action_nav/controller_extension.rb', line 12

def navigation
  @navigation ||= Set.new(self)
end