View Source PolymorphicEmbed (Polymorphic Embed v3.0.6)
Summary
Functions
Returns the possible types for a given schema and field
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]