warning for polymorphic + :include
Reported by Xavier Noria | December 24th, 2007 @ 12:46 PM | in Second Edition
A polymorphic association cannot be eager-loaded through :include because the query would need to put the association_type's table name in the very FROM/JOIN clauses, which is unknown so early. Pages 214--215.
Comments and changes to this ticket
-
Xavier Noria January 23rd, 2008 @ 05:44 PM
That is no longer true in current edge due to a revision of the overall preloading strategy. See
Please Login or create a free account to add a new comment.
You can update this ticket by sending an email to from your email client. (help)
Create your profile
Help contribute to this project by taking a few moments to create your personal profile. Create your profile »
