Skip to content

Commit

Permalink
chore: use String.to_atom/1
Browse files Browse the repository at this point in the history
  • Loading branch information
zachdaniel committed Jul 10, 2024
1 parent dc551af commit e85aab2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/resource/transformers/create_version_resource.ex
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit e85aab2

Please sign in to comment.