bootstrap3_form_builder 1.0.3 → 1.0.4

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: da1778ffc1cf874484e6ea5f6f84b9da4beaa95c
4
- data.tar.gz: 7375cdbbde00efae93e345da94779ebe940dd38b
3
+ metadata.gz: 7f314a215a90df89a00948410410648f0d0b3467
4
+ data.tar.gz: d30778c032027a85875e5d50e2458a6403624161
5
5
  SHA512:
6
- metadata.gz: 0d2e2f61ff30889f55deb4ded8c76e2512bcac4e028b7c12933383ff3c422c31fd1b9e6382ddbd3be10f104581ce02480cd7843e36bdb98da0c940a942377a14
7
- data.tar.gz: ad6880a87f32962ac656701135666e1f619f9671b445a9038e7a681979be56e8885529c89c0cebfccb6dc020c49a76917e7dc121a562e718bb79c9369f003106
6
+ metadata.gz: 0025f6a2616e2d017150118a87f1024fcf9fef86872335521109a458cf545ac1e7f8861fb7a147be40d9416325081dc5a6cacb51cde1ebebba8ac9e05e3aa53a
7
+ data.tar.gz: b243871494777ac63acc01e7c21c074cf8a3af68e5c13e55f17438d9357f66c15f8b6901ab4fc8a8bc6aac661a6329b0d54f393f77896c8d7323f6e198fb0340
@@ -53,6 +53,13 @@ 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"
57
+ return @template.content_tag("div",
58
+ @template.content_tag("label",
59
+ input.html_safe),
60
+ :class => "checkbox")
61
+ end
62
+
56
63
  @template.content_tag("div",
57
64
  @template.content_tag("label",
58
65
  custom_label,
@@ -1,3 +1,3 @@
1
1
  module Bootstrap3FormBuilder
2
- VERSION = "1.0.3"
2
+ VERSION = "1.0.4"
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.3
4
+ version: 1.0.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Zachary Wright