lib/tabit/item.rb in tabit-0.3.2 vs lib/tabit/item.rb in tabit-0.3.3
- old
+ new
@@ -1,5 +1,6 @@
+# -*- encoding : utf-8 -*-
module Tabit
class Item
include ActionView::Helpers::TagHelper
include ActionView::Helpers::UrlHelper
@@ -57,11 +58,11 @@
clazz = if active?
configuration.active_class
else
''
end
-
+
options[:outer][:class] = '' if @options[:outer][:class].nil?
options[:outer][:class] << " #{clazz}"
options[:outer][:class].strip!
case @type
@@ -111,12 +112,12 @@
end
end
protected
def output
- if children.empty?
- nil
+ if children.empty?
+ nil
else
case @type
when :dropdown
template.content_tag(
:ul,
@@ -135,6 +136,5 @@
def configuration
Tabit.configuration
end
end
end
-