Skip to content

Commit

Permalink
Cleans up dependencies a bit more.
Browse files Browse the repository at this point in the history
  • Loading branch information
Michael Bleigh committed Jan 14, 2010
1 parent 90f99f3 commit 9bbbeca
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/uberkit/menu.rb
Expand Up @@ -22,8 +22,8 @@ def action_wrapper(contents, options = {}, url_for_options = {})
classes << "current" if merits_current?(contents,options,url_for_options)
classes << "disabled" if options.delete(:disabled)
classes << classes.join("_") if classes.size > 1
classes << options[:html].delete(:class) if options[:html]
content_tag(:li, contents, options[:html].merge(:class => classes.join(" ")))
classes << options[:html].delete(:class) if options[:html] && options[:html][:class]
content_tag(:li, contents, (options[:html] || {}).merge(:class => classes.join(" ")))
end

def merits_current?(contents,options={},url_for_options={})
Expand Down

0 comments on commit 9bbbeca

Please sign in to comment.