EctoEnum macro should implement embed_as/1 and equal?/2
Closed this issue · 1 comments
Sgoettschkes commented
After updating Ecto to 3.2.0, I get the following warnings for each use of EctoEnum:
warning: function embed_as/1 required by behaviour Ecto.Type is not implemented (in module Module.Enum)
lib/namespace/module.ex:9: Module.Enum (module)
warning: function equal?/2 required by behaviour Ecto.Type is not implemented (in module Module.Enum)
lib/namespace/module.ex:9: Module.Enum (module)
I guess to prevent this warnings from showing up changing the macro would be sufficient.
sheharyarn commented
Any update on this? I see that there already is a PR.