Selaa lähdekoodia

boolean cast fix

Angus McLeod 6 vuotta sitten
vanhempi
commit
0dab4f4964
1 muutettua tiedostoa jossa 1 lisäystä ja 1 poistoa
  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