From 5f4b66201eb9bd01be96a212adfea8fb95334380 Mon Sep 17 00:00:00 2001 From: Michael Koziarski Date: Fri, 10 Feb 2006 05:19:41 +0000 Subject: Allow has_many :through to work with :include [Michael Schoen]. Closes #3611 git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3566 5ecf4fe2-1ee6-0310-87b1-e25e094e27de --- activerecord/test/fixtures/person.rb | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'activerecord/test/fixtures/person.rb') diff --git a/activerecord/test/fixtures/person.rb b/activerecord/test/fixtures/person.rb index 4fa5811c71..7a9666f4eb 100644 --- a/activerecord/test/fixtures/person.rb +++ b/activerecord/test/fixtures/person.rb @@ -1 +1,4 @@ -class Person < ActiveRecord::Base; end +class Person < ActiveRecord::Base + has_many :readers + has_many :posts, :through => :readers +end -- cgit v1.2.3