View Source PolymorphicEmbed (Polymorphic Embed v5.0.0)
Summary
Functions
Returns the possible types for a given schema and field
Types
@type t() :: any()
Functions
Returns the possible types for a given schema and field
you can call types/2
like this:
PolymorphicEmbed.types(MySchema, :contexts)
#=> [:location, :age, :device]