Detect polymorphic associations in generator #3536
Labels
Enhancement
Not necessarily a feature, but something has improved
Good first issue
Good for newcomers
Help wanted
We could use some help with this
Stale exempt
Task
Something to get done
Feature
If a user generates a resource that has polymorphic associations then they will automatically get a error from Avo because actually it's from rails because it does not support to compute the polymorphic association. We should detect if we find an
_type
and_id
attributes and try to make that polymorphic or we can generate it but leave it commented out if we can't compute to which classes it's polymorphic to.This happens in when they have invited by and invited the attributes.
Current workarounds
Screenshots or screen recordings
Additional context
The text was updated successfully, but these errors were encountered: