diff options
author | Andrew White <andyw@pixeltrix.co.uk> | 2011-05-24 07:21:32 +0100 |
---|---|---|
committer | Andrew White <andyw@pixeltrix.co.uk> | 2011-05-24 07:21:32 +0100 |
commit | d8bd19f6abd1f8cb344ff5c77971a357c4f5b3ec (patch) | |
tree | ba5c02da9a8625b031e45424240097f368121ce1 /activerecord/test/cases/associations | |
parent | a47a65f105bc7bac5fe7995a664f8f6afaa339c1 (diff) | |
download | rails-d8bd19f6abd1f8cb344ff5c77971a357c4f5b3ec.tar.gz rails-d8bd19f6abd1f8cb344ff5c77971a357c4f5b3ec.tar.bz2 rails-d8bd19f6abd1f8cb344ff5c77971a357c4f5b3ec.zip |
Ignore :includes on through associations
Diffstat (limited to 'activerecord/test/cases/associations')
-rw-r--r-- | activerecord/test/cases/associations/eager_test.rb | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/activerecord/test/cases/associations/eager_test.rb b/activerecord/test/cases/associations/eager_test.rb index 3e92a77830..ea186be9dd 100644 --- a/activerecord/test/cases/associations/eager_test.rb +++ b/activerecord/test/cases/associations/eager_test.rb @@ -448,6 +448,12 @@ class EagerAssociationTest < ActiveRecord::TestCase assert_equal post_tags, eager_post_tags end + def test_eager_with_has_many_through_join_model_ignores_default_includes + assert_nothing_raised do + authors(:david).comments_on_posts_with_default_include.to_a + end + end + def test_eager_with_has_many_and_limit posts = Post.find(:all, :order => 'posts.id asc', :include => [ :author, :comments ], :limit => 2) assert_equal 2, posts.size |