class ActiveAdmin::Views::Menu
def build(menu, options = {})
-
options
(Hash
) -- the options as passed to the underlying ul element. -
menu
(ActiveAdmin::Menu
) -- the Menu to render
def build(menu, options = {}) @menu = menu super(options) menu.items.each do |item| menu_item(item) if helpers.render_in_context self, item.should_display end children.sort! end