Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Fix a typo.

  • Loading branch information...
commit 825610e5a208208e2cfcd0c8a52a69f508724869 1 parent 74a6997
whitequark whitequark authored
Showing with 2 additions and 2 deletions.
  1. +2 −2 lib/padrino-fields/form_builder.rb
4 lib/padrino-fields/form_builder.rb
View
@@ -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
Please sign in to comment.
Something went wrong with that request. Please try again.