Skip to content

Commit

Permalink
fix for options passed
Browse files Browse the repository at this point in the history
  • Loading branch information
victorsosa committed Apr 20, 2015
1 parent cd805c7 commit 963b22f
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions app/helpers/navbar_helper.rb
Expand Up @@ -17,8 +17,11 @@ def menu_item(name=nil, path="#", *args, &block)
path = name || path if block_given?
options = args.extract_options!
content_tag :li, :class => is_active?(path, options) do
name, path = path, options if block_given?
link_to name, path, options, &block
if block_given?
link_to path, options, &block
else
link_to name, path, options, &block
end
end
end

Expand Down

0 comments on commit 963b22f

Please sign in to comment.