mirror of
https://github.com/ash-project/ash_postgres.git
synced 2024-09-19 21:13:19 +12:00
chore: singularize resource name
This commit is contained in:
parent
8d22e6ed65
commit
2d7879ff15
1 changed files with 1 additions and 0 deletions
|
@ -21,6 +21,7 @@ defmodule AshPostgres.ResourceGenerator do
|
||||||
|> Enum.map(fn %{table_name: table} = spec ->
|
|> Enum.map(fn %{table_name: table} = spec ->
|
||||||
resource =
|
resource =
|
||||||
table
|
table
|
||||||
|
|> Inflex.singularize()
|
||||||
|> Macro.camelize()
|
|> Macro.camelize()
|
||||||
|> then(&Module.concat([domain, &1]))
|
|> then(&Module.concat([domain, &1]))
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue