Permalink
Browse files

Update lib/simple_navigation/rendering/renderer/breadcrumbs.rb

Remove duplicate check of selected.
  • Loading branch information...
1 parent 48683d7 commit dae21c875490d92a17000dcb16c8243e1a5c603a @merqlove merqlove committed Feb 17, 2013
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/simple_navigation/rendering/renderer/breadcrumbs.rb
@@ -22,7 +22,7 @@ def render(item_container)
def a_tags(item_container)
item_container.items.inject([]) do |list, item|
if item.selected?
- list << tag_for(item) if item.selected?
+ list << tag_for(item)
if include_sub_navigation?(item)
list.concat a_tags(item.sub_navigation)
end

0 comments on commit dae21c8

Please sign in to comment.