From f2546164d6eb9302d1ff5d36939d128b8f96feb1 Mon Sep 17 00:00:00 2001 From: Michael Koziarski Date: Mon, 18 Feb 2008 00:14:54 +0000 Subject: Make dynamic finders respect the :include on HasManyThrough associations. Closes #10998. [cpytel] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@8890 5ecf4fe2-1ee6-0310-87b1-e25e094e27de --- activerecord/test/models/person.rb | 1 + 1 file changed, 1 insertion(+) (limited to 'activerecord/test/models/person.rb') diff --git a/activerecord/test/models/person.rb b/activerecord/test/models/person.rb index 7a9666f4eb..366f9fb708 100644 --- a/activerecord/test/models/person.rb +++ b/activerecord/test/models/person.rb @@ -1,4 +1,5 @@ class Person < ActiveRecord::Base has_many :readers has_many :posts, :through => :readers + has_many :posts_with_no_comments, :through => :readers, :source => :post, :include => :comments, :conditions => 'comments.id is null' end -- cgit v1.2.3