From cf8b06bbd0b39241f8f1ddf23ee511f540c55541 Mon Sep 17 00:00:00 2001 From: Angus McLeod Date: Tue, 20 Oct 2020 17:40:10 +1100 Subject: [PATCH] Don't require serializer for custom field --- lib/custom_wizard/custom_field.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/custom_wizard/custom_field.rb b/lib/custom_wizard/custom_field.rb index d7e1b61b..0b6483c6 100644 --- a/lib/custom_wizard/custom_field.rb +++ b/lib/custom_wizard/custom_field.rb @@ -53,7 +53,7 @@ class ::CustomWizard::CustomField add_error("Unsupported class: #{value}") end - if attr == 'serializers' && (SERIALIZERS & value).empty? + if attr == 'serializers' && value.present? && (SERIALIZERS & value).empty? add_error("Unsupported serializer: #{value}") end