better_form 0.2.0 → 0.3.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -31,10 +31,10 @@ module BetterForm
31
31
 
32
32
  private
33
33
  def generate_label(method, label)
34
- if label
35
- label_text = label
36
- else
34
+ if label == true
37
35
  label_text = method.to_s.gsub(/_/, ' ').capitalize
36
+ else
37
+ label_text = label.to_s
38
38
  end
39
39
 
40
40
  label(method, label_text)
@@ -1,3 +1,3 @@
1
1
  module BetterForm
2
- VERSION = "0.2.0"
2
+ VERSION = "0.3.0"
3
3
  end
metadata CHANGED
@@ -2,7 +2,7 @@
2
2
  name: better_form
3
3
  version: !ruby/object:Gem::Version
4
4
  prerelease:
5
- version: 0.2.0
5
+ version: 0.3.0
6
6
  platform: ruby
7
7
  authors:
8
8
  - Nicholas Firth-McCoy