Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 9 additions & 1 deletion lib/kaffy/resource_schema.ex
Original file line number Diff line number Diff line change
Expand Up @@ -313,7 +313,15 @@ defmodule Kaffy.ResourceSchema do
Enum.filter(fields(schema), fn f ->
field_name = elem(f, 0)

field_type(schema, f).type in [:string, :textarea, :richtext, :id, :integer, :decimal] &&
field_type(schema, f).type in [
:string,
:textarea,
:richtext,
:id,
:integer,
:decimal,
:binary_id
] &&
field_name in persisted_fields
end)
|> Enum.map(fn {f, options} -> {f, options.type} end)
Expand Down