Support slightly wrong has_many polymorphism.
Support polymorphism has_many on models.