I have a polymorphic association (belongs_to :resource, polymorphic: true) where resource can be a variety of different models. To simplify the questio
belongs_to :resource, polymorphic: true
resource
This is now working in Rails v6.0.0.rc1: https://github.com/rails/rails/pull/32655
v6.0.0.rc1
You can do .includes(resource: [:address, :location])
.includes(resource: [:address, :location])