I’m trying to create a model hierarchy that looks like this:
class Share
end
class TwitterShare < Share
end
class FacebookShare < Share
end
I’ve used STI in the past, but given the number of potential share types, i don’t think that’s the best option. I’m looking at MTI, where the shares table would hold common share information, and then the subclass tables would have their own distinct fields.
Has anyone used MTI in the past? What I’d really like to do is to have User.find(1).shares return an array holding all shares types. Is that possible?