Skip to content

Commit 36c18ad

Browse files
authored
Merge pull request #320 from Jaza/ulid-form-belongs-to
ULID form belongs_to
2 parents 6efe2d0 + e1fced1 commit 36c18ad

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/kaffy/resource_form.ex

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -127,7 +127,7 @@ defmodule Kaffy.ResourceForm do
127127
false -> text_or_assoc(conn, schema, form, field, opts)
128128
end
129129

130-
:binary_id ->
130+
t when t in [:binary_id, Ecto.ULID] ->
131131
case field in Kaffy.ResourceSchema.primary_keys(schema) do
132132
true -> text_input(form, field, opts)
133133
false -> text_or_assoc(conn, schema, form, field, opts)

0 commit comments

Comments
 (0)