This project is archived and is in readonly mode.
Solving conflicted joins and include find options
-
Pratik
- State changed from new to wontfix
- Assigned user set to Frederick Cheung
You shouldn't really be using joins/include in the same query. One of the following should do the job :
- Use only :include
- Call preload_associations on the result array,
-
Ben Johnson
I understand that, but I failed to specify the main reason this should be included. This can easily happen when chaining named scopes, since each scope can specify to eager load or join an association. Because of this they can easily clash. You already solve conflicts between the 2 when chaining named scope, why not solve them as a couple?