소스 검색

boolean cast fix

Angus McLeod 7 년 전
부모
커밋
0dab4f4964
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  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