diff options
| author | Ryuta Kamizono <kamipo@gmail.com> | 2017-09-02 07:17:56 +0900 |
|---|---|---|
| committer | Ryuta Kamizono <kamipo@gmail.com> | 2017-09-02 07:36:09 +0900 |
| commit | 82bfe3bf115e7d4d6f5f5b40f8ab32a61148da67 (patch) | |
| tree | 753476301018ac701a1b137acaf37a4e76d4d158 /activerecord/test/cases/adapters/postgresql/integer_test.rb | |
| parent | a26cff3c1235c61cd0135bed4ef63d7be452b458 (diff) | |
| download | rails-82bfe3bf115e7d4d6f5f5b40f8ab32a61148da67.tar.gz rails-82bfe3bf115e7d4d6f5f5b40f8ab32a61148da67.tar.bz2 rails-82bfe3bf115e7d4d6f5f5b40f8ab32a61148da67.zip | |
Add a test case for preloading through association with implicit source
If `reflection_scope.where_clause` is not empty, `through_scope` should
be joined the source association. But if the through association doesn't
have explicit `:source`, `options[:source]` will be nil and
`scope.includes_values` will also be empty. It should use
`source_reflection.name` rather than `options[:source]`.
Fixed by a26cff3c1235c61cd0135bed4ef63d7be452b458.
Fixes #11078.
Fixes #26129.
Closes #14312.
Closes #29155.
Closes #29841.
Diffstat (limited to 'activerecord/test/cases/adapters/postgresql/integer_test.rb')
0 files changed, 0 insertions, 0 deletions
