Module: Refinery::Menus::InstanceMethods

Defined in:
lib/refinery/menus/instance_methods.rb

Class Method Summary collapse

Instance Method Summary collapse

Class Method Details

.included(base) ⇒ Object



5
6
7
# File 'lib/refinery/menus/instance_methods.rb', line 5

def self.included(base)
  base.send :helper_method, :refinery_menu
end

Instance Method Details

#refinery_menu(menu_title) ⇒ Object Also known as: refinery_page_menu

Compiles a menu.



10
11
12
# File 'lib/refinery/menus/instance_methods.rb', line 10

def refinery_menu(menu_title)
  ::Refinery::Menu.new(::Refinery::Menus::Menu.find_or_create_by_permatitle(menu_title).links).roots
end