fix: ensure ci_strings casted after constraints

This commit is contained in:
Zach Daniel 2021-06-25 13:41:05 -04:00
parent 01abe80a04
commit 69967099e3

View file

@ -65,12 +65,7 @@ defmodule Ash.Type.CiString do
{:ok, nil} {:ok, nil}
{:ok, value} -> {:ok, value} ->
{:ok, {:ok, Ash.CiString.new(value, constraints[:casing])}
%Ash.CiString{
string: value,
casted?: is_nil(constraints[:case]),
case: constraints[:casing]
}}
other -> other ->
other other