rails-bootstrap-tabs 0.2.1 → 0.2.2

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: aa6a1a3802a03c8201ffc5ac76374c4f4ab348ca
4
- data.tar.gz: 47c52dc3612df4bb555abf7c30083963f6a24c8b
3
+ metadata.gz: 3433d4539468ccaf3998434f6532f6f4a57ec5fa
4
+ data.tar.gz: 7fbc7225aacfd7f7fab1b9eda403cd3095fc4460
5
5
  SHA512:
6
- metadata.gz: 86855c5dfa0aad5caae3aeb4f56f469f61f43fd40a6478cb861293cbc336320ab612ab3b7019df36351d9c79b81cb810e34bde97c921687a27a4306026b759e2
7
- data.tar.gz: e80dd1b445b0bb76633cb0476ce29cb79a73fca3bce0fdb2627808fc1646036951f60f3b3a7b88ee42a3d7050d66116c960a90a30f6537e11e9b71c9be4d74ae
6
+ metadata.gz: 9314c3be5b9967e3dbf83635f4b54f240b1613ecae60ece6c76d966c450d6112f0fbf34dfa782411d916b1d6e3e6f1ad259f692a3bdbb64a6a84c4d38d81cc5a
7
+ data.tar.gz: d9413ccd665db40b8958ed2f1cddb63caca83362450ab1709ead4cf15f1d5697c5e51a365ae5b09275356f7cc704d89bbd953a0b1cc6e5e3ea511082c152dcc3
@@ -9,7 +9,7 @@ module RailsBootstrapTabs::Renderers
9
9
  def render_tab(tab)
10
10
  options = tab.options
11
11
  content_tag :li, class: ('active' if options[:active]) do
12
- link_to "##{options[:anchor]}", class: "#{options[:link_class]}", data: { toggle: 'tab' } do
12
+ link_to "##{options[:anchor]}", class: (options[:link_class] if options[:link_class]), data: { toggle: 'tab' } do
13
13
  yield
14
14
  end
15
15
  end
@@ -10,8 +10,9 @@ module RailsBootstrapTabs::Renderers
10
10
  options = tab.options
11
11
  link_class = 'nav-link'
12
12
  link_class << ' active' if options[:active]
13
+ link_class << " #{options[:link_class]}" if options[:link_class]
13
14
  content_tag :li, class: 'nav-item' do
14
- link_to "##{options[:anchor]}", class: "#{options[:link_class]}", data: { toggle: 'tab' }, class: link_class do
15
+ link_to "##{options[:anchor]}", data: { toggle: 'tab' }, class: link_class do
15
16
  yield
16
17
  end
17
18
  end
@@ -1,3 +1,3 @@
1
1
  module RailsBootstrapTabs
2
- VERSION = '0.2.1'.freeze
2
+ VERSION = '0.2.2'.freeze
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rails-bootstrap-tabs
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.1
4
+ version: 0.2.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ivan Reshetnikov