Closed jaimeiniesta closed 2 years ago
Hey @jaimeiniesta
Thank you for the fix.
I think we can use on_dump
instead of converting mappings
to map. Additionally, on_dump
exists in the previous version of Ecto.Enum
type, so we can use the same function head to support both versions.
Adds a function clause to match the new internal representation in Ecto.Enum.
For example, we can now handle this:
Will be represented as
#Enum<[:foo, :bar]>
Fixes https://github.com/fuelen/ecto_erd/issues/14