lib/menu_builder/helper.rb in menu_builder-0.2.0 vs lib/menu_builder/helper.rb in menu_builder-0.2.1

- old
+ new

@@ -19,9 +19,15 @@ end def menu(options={}) concat tag(:ul, options, true) yield Menu.new(self) - concat "</ul>" + concat safe_html("</ul>") end + + private + def safe_html(html) + html.respond_to?(:html_safe) ? html.html_safe : html + end + end end \ No newline at end of file