polymorphic_embed
polymorphic_embed copied to clipboard
Traverse nested PolymorphicEmbed errors
It seems that traverse_errors/2 currently does not work, if the polymorphic_embeds_* is nested inside an Ecto-native *-to-one or *-to-many association. These errors are never processed.
This PR adds support for this.
Fixes #72
I'm a bit confused because of this line in the project's README:
- Support for nested
embeds_one/embeds_manyembeds
Does this mean that it should already support polymorphic_embeds_* nested in an embeds_*? Or is it the other way around?
If it's the other way around, I can update this PR to add support for nested embeds_one/embeds_many too.
@mathieuprog is there any chance you could follow up on this PR? I'm running into the same issue. Thanks!
(Great work on the library btw)
This has been added. Awesome work. Sorry it took so much time. Couldn't merge as there were conflicts.