From 26ce6a313b6b34ca41e1a24e7134bc6ba6d68fb6 Mon Sep 17 00:00:00 2001 From: Angus McLeod Date: Wed, 11 Sep 2019 21:30:59 +1000 Subject: [PATCH] boolean cast bugfix --- lib/builder.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/builder.rb b/lib/builder.rb index f6d426b4..b0f46947 100644 --- a/lib/builder.rb +++ b/lib/builder.rb @@ -341,7 +341,7 @@ class CustomWizard::Builder end def standardise_boolean(value) - !!HasCustomFields::Helpers::CUSTOM_FIELD_TRUE.include?(value) + ActiveRecord::Type::Boolean.new.cast(value) end def create_topic(user, action, data)