Skip to content

Commit

Permalink
Merge pull request #320 from Jaza/ulid-form-belongs-to
Browse files Browse the repository at this point in the history
ULID form belongs_to
  • Loading branch information
ghenry authored Dec 15, 2024
2 parents 6efe2d0 + e1fced1 commit 36c18ad
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/kaffy/resource_form.ex
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,7 @@ defmodule Kaffy.ResourceForm do
false -> text_or_assoc(conn, schema, form, field, opts)
end

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

0 comments on commit 36c18ad

Please sign in to comment.