From 59c710ac9323af68aa758bb435685b05dc9ae7ed Mon Sep 17 00:00:00 2001 From: Kian-Meng Ang Date: Thu, 4 Jul 2024 12:12:00 +0800 Subject: [PATCH] chore: fix typos Found via `codespell -H` --- lib/ex_machina/ecto.ex | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/ex_machina/ecto.ex b/lib/ex_machina/ecto.ex index 0efb9e5..05b458b 100644 --- a/lib/ex_machina/ecto.ex +++ b/lib/ex_machina/ecto.ex @@ -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)