Skip to content

Commit

Permalink
Don't assume :html option is provided.
Browse files Browse the repository at this point in the history
  • Loading branch information
Michael Bleigh committed Jan 14, 2010
1 parent ff2e805 commit d59a11a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/uberkit/menu.rb
Expand Up @@ -22,7 +22,7 @@ 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)
classes << options[:html].delete(:class) if options[:html]
content_tag(:li, contents, options[:html].merge(:class => classes.join(" ")))
end

Expand Down

0 comments on commit d59a11a

Please sign in to comment.