Permalink
Browse files

Merge pull request #61 from msaspence/master

The option :label_outside for boolean input not rendering input when sent to true
  • Loading branch information...
2 parents e4ac823 + 68c385e commit ed07f34c9d2bef474436e6a31c1070e9c57293cf @sodabrew sodabrew committed Mar 18, 2013
Showing with 3 additions and 3 deletions.
  1. +3 −3 lib/formtastic-bootstrap/inputs/boolean_input.rb
@@ -2,11 +2,11 @@
module FormtasticBootstrap
module Inputs
class BooleanInput < Formtastic::Inputs::BooleanInput
- include Base
-
+ include Base
+
def to_html
control_group_wrapping do
- options[:label_outside] ? control_label_html : "".html_safe <<
+ (options[:label_outside] ? control_label_html : "".html_safe) <<
hidden_field_html <<
controls_wrapping do
label_with_nested_checkbox

0 comments on commit ed07f34

Please sign in to comment.