さまざまな種類の製品 (絵画、歌、本など) を販売する販売者がいます。
product_id と product_type を使用したポリモーフィックな製品関連付けを持つ purchases テーブルがあります。ここで、product_type は絵画、歌、本などになります。
販売者にクエリを実行して、購入したすべての製品のリストを取得したいのですが、次のようになります。
Purchase.joins(:product).limit(10).offset(9000)
Hirb Error: Can not eagerly load the polymorphic association :product