Explorar o código

boolean cast fix

Angus McLeod %!s(int64=6) %!d(string=hai) anos
pai
achega
0dab4f4964
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      lib/builder.rb

+ 1 - 1
lib/builder.rb

@@ -216,7 +216,7 @@ class CustomWizard::Builder
 
     ## ensure all checkboxes are booleans
     if field['type'] === 'checkbox'
-      updater.fields[field['id']] = value == true
+      updater.fields[field['id']] = value == 'true'
     end
   end