Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Fixed a bug with precedence and label_outside option for checkbox

  • Loading branch information...
commit 68c385e8d7eb37238f8b63ab78f612dfa0037da7 1 parent e4ac823
@msaspence authored
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
Please sign in to comment.
Something went wrong with that request. Please try again.