Skip to content

Commit

Permalink
fix field options
Browse files Browse the repository at this point in the history
  • Loading branch information
Nevelito committed Feb 11, 2025
1 parent 7434c50 commit f0ca28d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/generators/avo/resource_generator.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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."
}
}
Expand Down

0 comments on commit f0ca28d

Please sign in to comment.