mirror of
https://github.com/ash-project/ash.git
synced 2024-09-20 13:33:20 +12:00
fix: when casting atom -> string, stringify it first
*duh*
This commit is contained in:
parent
174de6131e
commit
a626f8d92d
1 changed files with 1 additions and 1 deletions
|
@ -123,7 +123,7 @@ defmodule Ash.Type.String do
|
|||
def cast_input(nil, _), do: {:ok, nil}
|
||||
|
||||
def cast_input(value, constraints) when is_atom(value) do
|
||||
cast_input(value, constraints)
|
||||
cast_input(to_string(value), constraints)
|
||||
end
|
||||
|
||||
def cast_input(value, _) do
|
||||
|
|
Loading…
Reference in a new issue