Looks to be an issue with eager-loading polymorphic associations on an ActiveRecordRelation. Attempting to eager-load them on an individual activerecord object works fine (not that it CAN eager-load them, it just doesn't return an empty association list).
I'll be looking into this when I get some free development time, but in the meantime, the work-around is to disable-eager-loading on polymorphic associations.
ex:
Looks to be an issue with eager-loading polymorphic associations on an ActiveRecordRelation. Attempting to eager-load them on an individual activerecord object works fine (not that it CAN eager-load them, it just doesn't return an empty association list). I'll be looking into this when I get some free development time, but in the meantime, the work-around is to disable-eager-loading on polymorphic associations. ex: