Skip to content

Commit

Permalink
chore: fix typos (#461)
Browse files Browse the repository at this point in the history
Found via `codespell -H`
  • Loading branch information
kianmeng authored Jul 4, 2024
1 parent c0079f4 commit 4298677
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/ex_machina/ecto.ex
Original file line number Diff line number Diff line change
Expand Up @@ -291,9 +291,9 @@ defmodule ExMachina.Ecto do
end

defp insert_belongs_to_assocs(%{__struct__: struct} = record, module) do
assocations = struct.__schema__(:associations)
associations = struct.__schema__(:associations)

Enum.reduce(assocations, record, fn association_name, record ->
Enum.reduce(associations, record, fn association_name, record ->
case struct.__schema__(:association, association_name) do
association = %{__struct__: Ecto.Association.BelongsTo} ->
insert_built_belongs_to_assoc(module, association, record)
Expand Down

0 comments on commit 4298677

Please sign in to comment.