diff options
author | Emilio Tagua <miloops@gmail.com> | 2009-10-05 15:24:08 -0300 |
---|---|---|
committer | Emilio Tagua <miloops@gmail.com> | 2009-10-05 15:24:08 -0300 |
commit | 65f055a3ed790d41aeca8d4ca7f3771b05cf544f (patch) | |
tree | fa82844e2b1734fee8297ec683811b073a8312f0 /activerecord/test/cases/associations | |
parent | 3747f896a1b727d67e6022001007e5f58b24a267 (diff) | |
download | rails-65f055a3ed790d41aeca8d4ca7f3771b05cf544f.tar.gz rails-65f055a3ed790d41aeca8d4ca7f3771b05cf544f.tar.bz2 rails-65f055a3ed790d41aeca8d4ca7f3771b05cf544f.zip |
Added eager loading support to Relation and ActiveRecord#all.
Diffstat (limited to 'activerecord/test/cases/associations')
-rw-r--r-- | activerecord/test/cases/associations/cascaded_eager_loading_test.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/activerecord/test/cases/associations/cascaded_eager_loading_test.rb b/activerecord/test/cases/associations/cascaded_eager_loading_test.rb index 45e74ea024..ed2e2e9f8f 100644 --- a/activerecord/test/cases/associations/cascaded_eager_loading_test.rb +++ b/activerecord/test/cases/associations/cascaded_eager_loading_test.rb @@ -104,7 +104,7 @@ class CascadedEagerLoadingTest < ActiveRecord::TestCase authors.first.posts.first.special_comments.first.post.very_special_comment end end - + def test_eager_association_loading_where_first_level_returns_nil authors = Author.find(:all, :include => {:post_about_thinking => :comments}, :order => 'authors.id DESC') assert_equal [authors(:mary), authors(:david)], authors |