uberkit 0.0.9 → 0.0.10
Sign up to get free protection for your applications and to get access to all the features.
- data/VERSION.yml +1 -1
- data/lib/uberkit/menu.rb +2 -2
- metadata +1 -1
data/VERSION.yml
CHANGED
data/lib/uberkit/menu.rb
CHANGED
@@ -22,8 +22,8 @@ module Uberkit
|
|
22
22
|
classes << "current" if merits_current?(contents,options,url_for_options)
|
23
23
|
classes << "disabled" if options.delete(:disabled)
|
24
24
|
classes << classes.join("_") if classes.size > 1
|
25
|
-
classes << options[:html].delete(:class) if options[:html]
|
26
|
-
content_tag(:li, contents, options[:html].merge(:class => classes.join(" ")))
|
25
|
+
classes << options[:html].delete(:class) if options[:html] && options[:html][:class]
|
26
|
+
content_tag(:li, contents, (options[:html] || {}).merge(:class => classes.join(" ")))
|
27
27
|
end
|
28
28
|
|
29
29
|
def merits_current?(contents,options={},url_for_options={})
|