bootstrap_form_helper 2.0.2.0.beta1 → 2.0.2.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -149,9 +149,9 @@ class BootstrapFormHelper::FormControls < ActionView::Helpers::FormBuilder
149
149
  klasses = 'checkbox'
150
150
  klasses += ' inline' if options.delete :inline
151
151
 
152
- label attribute, class: klasses do
153
- template.concat super(attribute, options, checked_value, unchecked_value)
154
- template.concat text
152
+ @template.label_tag nil, class: klasses do
153
+ @template.concat super(attribute, options, checked_value, unchecked_value)
154
+ @template.concat text
155
155
  yield if block_given?
156
156
  end
157
157
  end
@@ -160,9 +160,9 @@ class BootstrapFormHelper::FormControls < ActionView::Helpers::FormBuilder
160
160
  klasses = 'radio'
161
161
  klasses += ' inline' if options.delete :inline
162
162
 
163
- label attribute, class: klasses do
164
- template.concat super(attribute, value, options)
165
- template.concat text || value.to_s.humanize.titleize
163
+ @template.label_tag nil, class: klasses do
164
+ @template.concat super(attribute, value, options)
165
+ @template.concat text || value.to_s.humanize.titleize
166
166
  yield if block_given?
167
167
  end
168
168
  end
metadata CHANGED
@@ -1,15 +1,15 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: bootstrap_form_helper
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.0.2.0.beta1
5
- prerelease: 8
4
+ version: 2.0.2.0
5
+ prerelease:
6
6
  platform: ruby
7
7
  authors:
8
8
  - Ehren Kret
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2012-04-30 00:00:00.000000000 Z
12
+ date: 2012-05-02 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: railties
@@ -87,9 +87,9 @@ required_ruby_version: !ruby/object:Gem::Requirement
87
87
  required_rubygems_version: !ruby/object:Gem::Requirement
88
88
  none: false
89
89
  requirements:
90
- - - ! '>'
90
+ - - ! '>='
91
91
  - !ruby/object:Gem::Version
92
- version: 1.3.1
92
+ version: '0'
93
93
  requirements: []
94
94
  rubyforge_project:
95
95
  rubygems_version: 1.8.23