We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 0dd35bb + aebec4d commit 117a4f6Copy full SHA for 117a4f6
lib/kaffy/resource_form.ex
@@ -289,7 +289,13 @@ defmodule Kaffy.ResourceForm do
289
290
fields = Kaffy.ResourceSchema.fields(assoc)
291
292
- string_fields = Enum.filter(fields, fn {_f, options} -> options.type == :string end)
+ string_fields =
293
+ Enum.filter(fields, fn {_f, options} ->
294
+ options.type == :string or
295
+ (Kaffy.Utils.is_module(options.type) and
296
+ Kernel.function_exported?(options.type, :type, 0) and
297
+ options.type.type == :string)
298
+ end)
299
300
popular_strings =
301
string_fields
0 commit comments