Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

don't span, just create links

  • Loading branch information...
commit 192d8c1bcce9ef37d5348344380356fad8165183 1 parent b3c90d9
Maciej Kozak authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  lib/tabs_on_rails/tabs/tabs_builder.rb
View
2  lib/tabs_on_rails/tabs/tabs_builder.rb
@@ -46,7 +46,7 @@ class TabsBuilder < Builder
#
def tab_for(tab, name, options, item_options = {})
item_options[:class] = item_options[:class].to_s.split(" ").push("current").join(" ") if current_tab?(tab)
- content = @context.link(current_tab?(tab), name, options)
+ content = @context.link(name, options)
@context.content_tag(:li, content, item_options)
end
Please sign in to comment.
Something went wrong with that request. Please try again.