This project is archived and is in readonly mode.
Preloading associations generates invalid sql for STI and has_many :through when condition added
-
Jon Leighton
- State changed from new to resolved
- Importance changed from to Low
This is no longer an issue. It's covered by
test_find_with_sti_joinininner_join_associations_test.rb. (FYI, doingFoo.includes(:bar).where(:conditions)generates the query in the same way asFoo.joins(:bar), except that the former uses LEFT JOIN and the latter uses INNER JOIN.)