From e85aab2d3f504a1c52025050ae9224cdfba250d2 Mon Sep 17 00:00:00 2001 From: Zach Daniel Date: Wed, 10 Jul 2024 12:40:06 -0400 Subject: [PATCH] chore: use `String.to_atom/1` --- lib/resource/transformers/create_version_resource.ex | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/resource/transformers/create_version_resource.ex b/lib/resource/transformers/create_version_resource.ex index c418581..c33d5b3 100644 --- a/lib/resource/transformers/create_version_resource.ex +++ b/lib/resource/transformers/create_version_resource.ex @@ -51,7 +51,7 @@ defmodule AshPaperTrail.Resource.Transformers.CreateVersionResource do attributes |> Enum.map(& &1.name), :version_source_id, :changes, - belongs_to_actors |> Enum.map( &String.to_existing_atom("#{&1.name}_id")) + belongs_to_actors |> Enum.map(&String.to_atom("#{&1.name}_id")) ] |> List.flatten() |> Enum.reject(&is_nil/1)