bootstrap3_form_builder 1.0.4 → 1.0.5

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: 7f314a215a90df89a00948410410648f0d0b3467
4
- data.tar.gz: d30778c032027a85875e5d50e2458a6403624161
3
+ metadata.gz: 00e3e54267918f673f95256a0d402905267dc3eb
4
+ data.tar.gz: 3700521161c50d132c429b0b4bd2cbfaf25f9b11
5
5
  SHA512:
6
- metadata.gz: 0025f6a2616e2d017150118a87f1024fcf9fef86872335521109a458cf545ac1e7f8861fb7a147be40d9416325081dc5a6cacb51cde1ebebba8ac9e05e3aa53a
7
- data.tar.gz: b243871494777ac63acc01e7c21c074cf8a3af68e5c13e55f17438d9357f66c15f8b6901ab4fc8a8bc6aac661a6329b0d54f393f77896c8d7323f6e198fb0340
6
+ metadata.gz: a4e4ebf8efe180bc3809295352c8f61b935feb104b88465445b30022fbde89e6c61072137942592b1ba40f20327b1b302fa5c4e5e3996f7e500750f6e2a6b2f0
7
+ data.tar.gz: 4d9170b613ca89a12d462b5af0f62463dc2075079c6742903875c40e9798ad5240c527420abd94de5e91d6e7f25812f59843d93997908a2832cd807eb5cfcd05
@@ -28,7 +28,7 @@ Generates form fields that work with Twitter Bootstrap 3.
28
28
  set_numericality_options(validators, options)
29
29
  set_format_options(validators, options, method_name)
30
30
 
31
- if !options[:class]
31
+ if !options[:class] && method_name != :check_box
32
32
  options[:class] = "form-control"
33
33
  end
34
34
 
@@ -53,10 +53,10 @@ Generates form fields that work with Twitter Bootstrap 3.
53
53
  (options[:help_block] ? @template.content_tag("p", options[:help_block], :class => "help-block") : "" ) +
54
54
  (options[:help_inline] ? @template.content_tag("span", options[:help_inline], :class => "help-inline") : "" )
55
55
 
56
- if method_name == "check_box"
56
+ if method_name == :check_box
57
57
  return @template.content_tag("div",
58
58
  @template.content_tag("label",
59
- input.html_safe),
59
+ input.html_safe + custom_label),
60
60
  :class => "checkbox")
61
61
  end
62
62
 
@@ -1,3 +1,3 @@
1
1
  module Bootstrap3FormBuilder
2
- VERSION = "1.0.4"
2
+ VERSION = "1.0.5"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: bootstrap3_form_builder
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.4
4
+ version: 1.0.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Zachary Wright