diff options
author | Paul Nikitochkin <paul.nikitochkin@gmail.com> | 2013-10-27 19:39:22 +0200 |
---|---|---|
committer | Paul Nikitochkin <paul.nikitochkin@gmail.com> | 2013-10-27 21:15:41 +0200 |
commit | 6b71a1416cb1457517b27cd0a55cb32df0cdf0c3 (patch) | |
tree | 207643bae962d99f0a32973010217837909662fa /activerecord/test/cases/associations | |
parent | 52199d1fd41ffc439357c16a7873fb04444175cd (diff) | |
download | rails-6b71a1416cb1457517b27cd0a55cb32df0cdf0c3.tar.gz rails-6b71a1416cb1457517b27cd0a55cb32df0cdf0c3.tar.bz2 rails-6b71a1416cb1457517b27cd0a55cb32df0cdf0c3.zip |
Skip `include_values` from through associations chains for building target scope
Fixes: #12242, #9517, #10240
Diffstat (limited to 'activerecord/test/cases/associations')
-rw-r--r-- | activerecord/test/cases/associations/has_many_through_associations_test.rb | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/activerecord/test/cases/associations/has_many_through_associations_test.rb b/activerecord/test/cases/associations/has_many_through_associations_test.rb index 3b61b91d62..b1e823729e 100644 --- a/activerecord/test/cases/associations/has_many_through_associations_test.rb +++ b/activerecord/test/cases/associations/has_many_through_associations_test.rb @@ -1085,4 +1085,8 @@ class HasManyThroughAssociationsTest < ActiveRecord::TestCase readers(:michael_authorless).update(first_post_id: 1) assert_equal [posts(:thinking)], person.reload.first_posts end + + def test_has_many_through_with_includes_in_through_association_scope + posts(:welcome).author_address_extra_with_address.to_a + end end |