handle ecto deprecation warning (:with in cast_assoc/cast_embed)
woylie opened this issue · comments
Mathias Polligkeit commented
warning: passing a MFA to :with in cast_assoc/cast_embed is deprecated, please pass an anonymous function instead
(ecto 3.10.2) lib/ecto/changeset/relation.ex:119: Ecto.Changeset.Relation.do_cast/7
(ecto 3.10.2) lib/ecto/changeset/relation.ex:364: Ecto.Changeset.Relation.map_changes/10
(ecto 3.10.2) lib/ecto/changeset/relation.ex:112: Ecto.Changeset.Relation.cast/5
(ecto 3.10.2) lib/ecto/changeset.ex:1192: Ecto.Changeset.cast_relation/4
(flop 0.20.1) lib/flop/validation.ex:18: Flop.Validation.changeset/2
(flop 0.20.1) lib/flop.ex:1345: Flop.validate/2
(flop 0.20.1) lib/flop.ex:713: Flop.validate_and_run/3