Permalink
Browse files

Fixed a bug with precedence and label_outside option for checkbox

  • Loading branch information...
1 parent e4ac823 commit 68c385e8d7eb37238f8b63ab78f612dfa0037da7 @msaspence committed Mar 18, 2013
Showing with 3 additions and 3 deletions.
  1. +3 −3 lib/formtastic-bootstrap/inputs/boolean_input.rb
View
6 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 68c385e

Please sign in to comment.