Skip to content

Commit

Permalink
Explicitly prefix Ecto.Changeset functions
Browse files Browse the repository at this point in the history
  • Loading branch information
chrislaskey committed Sep 5, 2021
1 parent 0b67227 commit c30500a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/assoc/schema.ex
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ defmodule Assoc.Schema do
params = include_existing_associations(struct, params)

struct
|> cast(params, [])
|> Ecto.Changeset.cast(params, [])
|> put_associations(updatable_associations(), params)
end

Expand Down Expand Up @@ -109,7 +109,7 @@ defmodule Assoc.Schema do

case value do
:omitted -> acc
value -> put_assoc(acc, key, value)
value -> Ecto.Changeset.put_assoc(acc, key, value)
end
end)
end
Expand Down

0 comments on commit c30500a

Please sign in to comment.