module Refinery::PageMenus::InstanceMethods

Public Class Methods

included(base) click to toggle source
# File lib/refinery/page_menus/instance_methods.rb, line 5
def self.included(base)
  base.send :helper_method, :refinery_page_menu
end

Public Instance Methods

refinery_page_menu(menu_title) click to toggle source

Compiles a page menu.

# File lib/refinery/page_menus/instance_methods.rb, line 10
def refinery_page_menu(menu_title)
  ::Refinery::Menu.new(::Refinery::PageMenu.find_or_create_by_permatitle(menu_title).links).roots
end