lib/nav.rb in nav-0.0.2 vs lib/nav.rb in nav-0.1.0

- old
+ new

@@ -3,11 +3,12 @@ module Nav def nav( options = {}, &block ) builder = Builder.new( self, options ) yield( builder ) - concat( builder.to_html ).html_safe if builder.actions? + + builder.to_html if builder.actions? end private @@ -34,11 +35,11 @@ end def actions?; @actions.any?; end def to_html - content_tag :ul, actions.html_safe, @options + content_tag( :ul, actions.html_safe, @options ).html_safe end private @@ -96,5 +97,7 @@ end end end + +ActionView::Base.send :include, Nav