0
0
Fork 1
Spiegel von https://github.com/paviliondev/discourse-custom-wizard.git synchronisiert 2024-11-22 09:20:29 +01:00

Don't require serializer for custom field

Dieser Commit ist enthalten in:
Angus McLeod 2020-10-20 17:40:10 +11:00
Ursprung 0094be8352
Commit cf8b06bbd0

Datei anzeigen

@ -53,7 +53,7 @@ class ::CustomWizard::CustomField
add_error("Unsupported class: #{value}") add_error("Unsupported class: #{value}")
end end
if attr == 'serializers' && (SERIALIZERS & value).empty? if attr == 'serializers' && value.present? && (SERIALIZERS & value).empty?
add_error("Unsupported serializer: #{value}") add_error("Unsupported serializer: #{value}")
end end