elixir-waffle / waffle_ecto

Waffle.Ecto provides an integration with Waffle and Ecto
https://hexdocs.pm/waffle_ecto
112 stars 30 forks source link

Add equal?/2 and embed_as/1 Ecto.Type callbacks to Waffle.Ecto.Definition #25

Closed yunmikun2 closed 4 years ago

yunmikun2 commented 4 years ago

equal?/2 callback is required for an Ecto.Type since Ecto 3.0.0 and embed_as/1 -- since Ecto 3.2.0. Lacking to provide these callbacks raises a warning while compilation in user's code.

yunmikun2 commented 4 years ago

Sorry, my mistake, these callbacks are defined automatically on use Ecto.Type. Closing this now.