lib/nanoc/helpers/link_to.rb in nanoc-2.1.5 vs lib/nanoc/helpers/link_to.rb in nanoc-2.1.6

- old
+ new

@@ -49,13 +49,13 @@ # current one. In this case, a span element with class "active" and with # the given text will be returned. # # Examples: # - # link_to('Blog', '/blog/') + # link_to_unless_current('Blog', '/blog/') # # => '<a href="/blog/">Blog</a>' # - # link_to('This Page', @page_rep) + # link_to_unless_current('This Page', @page_rep) # # => '<span class="active">This Page</span>' def link_to_unless_current(text, path_or_rep, attributes={}) # Find path path = path_or_rep.is_a?(String) ? path_or_rep : path_or_rep.path