Module: EacRailsBase0::MainMenuHelper

Defined in:
app/helpers/eac_rails_base0/main_menu_helper.rb

Constant Summary collapse

APP_MAIN_MENU_ENTRIES_METHOD =
'app_main_menu_entries'

Instance Method Summary collapse

Instance Method Details

#base0_app_main_menu_default_entriesObject



15
16
17
# File 'app/helpers/eac_rails_base0/main_menu_helper.rb', line 15

def base0_app_main_menu_default_entries
  ::Rails.application.root_menu.to_dropdown_menu_entries(self)
end

#base0_app_main_menu_entriesObject



7
8
9
10
11
12
13
# File 'app/helpers/eac_rails_base0/main_menu_helper.rb', line 7

def base0_app_main_menu_entries
  if respond_to?(APP_MAIN_MENU_ENTRIES_METHOD)
    send(APP_MAIN_MENU_ENTRIES_METHOD, base0_app_main_menu_default_entries)
  else
    base0_app_main_menu_default_entries
  end
end