Module: BootstrapAdmin::MenuHelper
- Defined in:
- app/helpers/bootstrap_admin/menu_helper.rb
Constant Summary collapse
- BOOTSTRAP_ADMIN_MENU_FILE =
"config/bootstrap_admin_menu.yml"
Instance Method Summary collapse
-
#bootstrap_admin_menu ⇒ Markup
Builds the bootstrap_admin menu markup.
Instance Method Details
#bootstrap_admin_menu ⇒ Markup
Builds the bootstrap_admin menu markup
8 9 10 11 12 13 14 15 16 17 18 19 20 |
# File 'app/helpers/bootstrap_admin/menu_helper.rb', line 8 def content_tag :ul, :class=>"nav" do .map do |row| if row[:item].is_a? Array row elsif row[:item].is_a? Symbol row else row end end.join.html_safe end # content_tag end |