app/helpers/menus_helper.rb in fullstack-cms-0.2.8 vs app/helpers/menus_helper.rb in fullstack-cms-0.2.9
- old
+ new
@@ -72,18 +72,18 @@
# ===================
# = Private Methods =
# ===================
def menu_links_for(menu, link_options = {})
-
+ html = ""
menu.links.each do |link|
unless block_given?
html << menu_link(link, link_options)
else
html << yield(link)
end
end
-
+ html
end
def fetch_menu!(uid, locale)
query = Menu.where(:uid => uid.to_s)