diff options
author | Rick Olson <technoweenie@gmail.com> | 2006-04-05 17:11:21 +0000 |
---|---|---|
committer | Rick Olson <technoweenie@gmail.com> | 2006-04-05 17:11:21 +0000 |
commit | 58c435a3caebbe31c02e80c8f32840f0daa57d68 (patch) | |
tree | ffecd5a19ee67a1bc70223141955006a3f8bac61 /activerecord/test | |
parent | a9fb1544b0e7e6412e4cb64702585024e24276bf (diff) | |
download | rails-58c435a3caebbe31c02e80c8f32840f0daa57d68.tar.gz rails-58c435a3caebbe31c02e80c8f32840f0daa57d68.tar.bz2 rails-58c435a3caebbe31c02e80c8f32840f0daa57d68.zip |
Support eager includes when going through a polymorphic has_many association. [Rick]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@4171 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
Diffstat (limited to 'activerecord/test')
-rw-r--r-- | activerecord/test/associations_join_model_test.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/activerecord/test/associations_join_model_test.rb b/activerecord/test/associations_join_model_test.rb index 4a11d4c5eb..93cfd0084c 100644 --- a/activerecord/test/associations_join_model_test.rb +++ b/activerecord/test/associations_join_model_test.rb @@ -311,7 +311,7 @@ class AssociationsJoinModelTest < Test::Unit::TestCase assert_equal [taggings(:welcome_general), taggings(:thinking_general)], authors(:david).taggings.uniq.sort_by { |t| t.id } end - def test_has_many_through_polymorphic_has_many_with_eager_loading + def test_include_has_many_through_polymorphic_has_many author = Author.find_by_id(authors(:david).id, :include => :taggings) expected_taggings = [taggings(:welcome_general), taggings(:thinking_general)] assert_no_queries do |