Skip to content

Commit

Permalink
# Made the items html_safe for rails 3
Browse files Browse the repository at this point in the history
  • Loading branch information
priceflex committed Oct 24, 2010
1 parent 2fc237f commit ad7bf45
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/navigation.rb
Expand Up @@ -54,7 +54,7 @@ def navigation(sections, options={})
end

return '' if items.blank?
content_tag(:ul, items, :class => 'navigation')
content_tag(:ul, items.to_s.html_safe, :class => 'navigation') # Made the items html_safe for rails 3
end

private
Expand Down

0 comments on commit ad7bf45

Please sign in to comment.