diff --git a/lib/bitcrowd_ecto/changeset.ex b/lib/bitcrowd_ecto/changeset.ex index 1c0357e..efd5b58 100644 --- a/lib/bitcrowd_ecto/changeset.ex +++ b/lib/bitcrowd_ecto/changeset.ex @@ -527,6 +527,8 @@ defmodule BitcrowdEcto.Changeset do end defp cast_scalars(schema_struct, params, scalars, required) do + # Don't be confused, `--` is right-associative. + # https://hexdocs.pm/elixir/1.15.7/operators.html#operator-precedence-and-associativity required = scalars -- scalars -- required schema_struct