hzamani / active_record-acts_as

Simulate multi-table inheritance for activerecord models
MIT License
252 stars 86 forks source link

Creating subclass does not create superclass object until superclass object is needed #55

Closed lowjoel closed 8 years ago

lowjoel commented 8 years ago

the definition of the acts_as association does not implicitly build the superclass object, only accessing it through #actable would.

I propose implementing another method with the same name as the association which calls super or builds the superclass object, then aliasing actable to that method instead.

If this is okay with you, I'd quickly write a PR

hzamani commented 8 years ago

That sounds good, thanks