Explorar el Código

boolean cast fix

Angus McLeod hace 6 años
padre
commit
0dab4f4964
Se han modificado 1 ficheros con 1 adiciones y 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