From f0ca28dc22fb6919a1f5adf3e2ceb18fe337a213 Mon Sep 17 00:00:00 2001 From: Nevelito Date: Tue, 11 Feb 2025 11:01:18 +0100 Subject: [PATCH] fix field options --- lib/generators/avo/resource_generator.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/generators/avo/resource_generator.rb b/lib/generators/avo/resource_generator.rb index 03a832adb3..8f16b06185 100644 --- a/lib/generators/avo/resource_generator.rb +++ b/lib/generators/avo/resource_generator.rb @@ -204,7 +204,7 @@ def field_with_polymorphic_association(association) { field: "belongs_to", options: { - polymorphic_as: :"#{association.name}", + polymorphic_as: ":#{association.name}", types: types.presence || "[] # Types weren't computed correctly. Please configure them." } }