Method: Navigation::NestedMenu#item
- Defined in:
- lib/navigation/nested_menu.rb
#item(key, options = {}) ⇒ Object
13 14 15 16 17 |
# File 'lib/navigation/nested_menu.rb', line 13 def item(key, = {}) # only support one level of nesting (the action-level) raise InvalkeyBlock, InvalkeyBlock. if block_given? MENUS[@menu][@parent][SUBMENU].merge!(normalize(key) => ) end |