mirror of
https://github.com/ash-project/ash.git
synced 2024-09-20 05:23:03 +12:00
Fix atom casting when empty string (#252)
This commit is contained in:
parent
678533a8cb
commit
57da53a7bc
1 changed files with 1 additions and 1 deletions
|
@ -49,7 +49,7 @@ defmodule Ash.Type.Atom do
|
|||
{:ok, value}
|
||||
end
|
||||
|
||||
def cast_input(_value, ""), do: nil
|
||||
def cast_input("", _), do: nil
|
||||
|
||||
def cast_input(value, _) when is_binary(value) do
|
||||
{:ok, String.to_existing_atom(value)}
|
||||
|
|
Loading…
Reference in a new issue