chore: singularize resource name

This commit is contained in:
Zach Daniel 2024-09-05 13:17:07 -04:00
parent 8d22e6ed65
commit 2d7879ff15

View file

@ -21,6 +21,7 @@ defmodule AshPostgres.ResourceGenerator do
|> Enum.map(fn %{table_name: table} = spec ->
resource =
table
|> Inflex.singularize()
|> Macro.camelize()
|> then(&Module.concat([domain, &1]))