You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have a superclass model Region and a subclass model Domain - in the database this is implemented with multi-table inheritance using the 'active_record-acts_as' gem.
Is there a way to have the ancestry methods return me items of the two different classes? Currently I can get all items back as regions and have to promote the objects that are actually domains - this is a database hit I'd prefer to wrap into the original call.
The text was updated successfully, but these errors were encountered:
I have a superclass model
Region
and a subclass modelDomain
- in the database this is implemented with multi-table inheritance using the 'active_record-acts_as' gem.Is there a way to have the ancestry methods return me items of the two different classes? Currently I can get all items back as regions and have to promote the objects that are actually domains - this is a database hit I'd prefer to wrap into the original call.
The text was updated successfully, but these errors were encountered: