Ash FrameworkAF
Ash Framework3y ago
4 replies
n0gg1n

Create has_one relationship with flexible resource type

is there a "best practice" for creating a has_one relationship with a flexible resource type?
E.g. if I have the resources PrivateContact and PublicContact
Is something like the following possible?

relationships do has_one :address, PrivateContact | PublicContact end
Was this page helpful?