diff options
author | Rafael Mendonça França <rafaelmfranca@gmail.com> | 2013-10-27 13:05:19 -0700 |
---|---|---|
committer | Rafael Mendonça França <rafaelmfranca@gmail.com> | 2013-10-27 13:05:19 -0700 |
commit | e17979e4f7cbf917d59a7cc515b77566e31afff6 (patch) | |
tree | a27ec11cec3fdb43a7e1bd042dfd304dde9fb3e6 /activerecord/test/cases/associations | |
parent | 16d81af5292c8f5f01cb38c862123fa01b995f3f (diff) | |
parent | 6b71a1416cb1457517b27cd0a55cb32df0cdf0c3 (diff) | |
download | rails-e17979e4f7cbf917d59a7cc515b77566e31afff6.tar.gz rails-e17979e4f7cbf917d59a7cc515b77566e31afff6.tar.bz2 rails-e17979e4f7cbf917d59a7cc515b77566e31afff6.zip |
Merge pull request #12664 from jetthoughts/12242_includes_in_through_association
Skip `include_values` from through associations chains for building association scope
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 |