Permalink
Browse files

Fix a typo.

  • Loading branch information...
1 parent 74a6997 commit 825610e5a208208e2cfcd0c8a52a69f508724869 @whitequark whitequark committed May 17, 2012
Showing with 2 additions and 2 deletions.
  1. +2 −2 lib/padrino-fields/form_builder.rb
@@ -21,7 +21,7 @@ def input(attribute, options={})
options.reverse_merge!(:caption => options.delete(:caption)) if options[:caption]
type = options[:as] || klazz.form_column_type_for(attribute)
label_html, field_html = "", ""
- if type == :boolean || options[:as] == :boolean && !@@settings.control_container
+ if (type == :boolean || options[:as] == :boolean) && !@@settings.control_container
field_html << default_input(attribute,type,options)
field_html << setup_label(attribute,type,labelize(options))
else
@@ -192,4 +192,4 @@ def klazz
end # StandardFormBuilder
end # FormBuilder
end # Helpers
-end # Padrino
+end # Padrino

0 comments on commit 825610e

Please sign in to comment.