simple_tabs 0.0.2 → 0.0.3

Sign up to get free protection for your applications and to get access to all the features.
Files changed (2) hide show
  1. data/lib/simple_tabs.rb +2 -2
  2. metadata +1 -1
data/lib/simple_tabs.rb CHANGED
@@ -59,8 +59,8 @@ module ActionView
59
59
  def tabs_for(name, tabs=[])
60
60
  @tabs = tabs
61
61
  @name = name
62
- @default_tab ||= @tabs.try(:first)
63
- @current_tab ||= params[@name]
62
+ @default_tab ||= format_tab(@tabs.try(:first))
63
+ @current_tab ||= format_tab(params[@name])
64
64
  #logger.info("TABLIST #{default_tab} #{@default_tab} #{current_tab}")
65
65
  content_tag(:ul, :class=>'tab_list') do
66
66
  safe_join(tabs.map do |tab|
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: simple_tabs
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.2
4
+ version: 0.0.3
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors: