Module: RailsMenu::ControllerHelper

Defined in:
lib/rails_menu/controller_helper.rb

Defined Under Namespace

Modules: ClassMethods

Class Method Summary collapse

Instance Method Summary collapse

Class Method Details

.included(base) ⇒ Object



4
5
6
# File 'lib/rails_menu/controller_helper.rb', line 4

def self.included(base)
  base.extend ClassMethods
end

Instance Method Details

#set_menu(id) ⇒ Object



8
9
10
# File 'lib/rails_menu/controller_helper.rb', line 8

def set_menu(id)
  @rails_menu_active = id
end