From c691eb022c12d2245ff95c58969477b87a2cb213 Mon Sep 17 00:00:00 2001 From: Zach Daniel Date: Wed, 4 Oct 2023 11:51:59 -0400 Subject: [PATCH] improvement: allow overriding `cast_input/2` on `NewType` --- lib/ash/type/new_type.ex | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/ash/type/new_type.ex b/lib/ash/type/new_type.ex index c5c3eb7d..6e3acc3c 100644 --- a/lib/ash/type/new_type.ex +++ b/lib/ash/type/new_type.ex @@ -306,7 +306,7 @@ defmodule Ash.Type.NewType do Keyword.merge(constraints || [], subtype_constraints || []) end - defoverridable type_constraints: 2, storage_type: 1 + defoverridable type_constraints: 2, storage_type: 1, cast_input: 2 end end end