mirror of
https://github.com/ash-project/ash_postgres.git
synced 2024-09-20 13:33:50 +12:00
chore: map+join -> map_join
This commit is contained in:
parent
a56f4ef52f
commit
612c9ee7a9
1 changed files with 1 additions and 2 deletions
3
mix.exs
3
mix.exs
|
@ -92,11 +92,10 @@ defmodule AshPostgres.MixProject do
|
||||||
defp capitalize(string) do
|
defp capitalize(string) do
|
||||||
string
|
string
|
||||||
|> String.split(" ")
|
|> String.split(" ")
|
||||||
|> Enum.map(fn string ->
|
|> Enum.map_join(" ", fn string ->
|
||||||
[hd | tail] = String.graphemes(string)
|
[hd | tail] = String.graphemes(string)
|
||||||
String.capitalize(hd) <> Enum.join(tail)
|
String.capitalize(hd) <> Enum.join(tail)
|
||||||
end)
|
end)
|
||||||
|> Enum.join(" ")
|
|
||||||
end
|
end
|
||||||
|
|
||||||
defp groups_for_extras() do
|
defp groups_for_extras() do
|
||||||
|
|
Loading…
Reference in a new issue