aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/test/fixtures/person.rb
diff options
context:
space:
mode:
authorMichael Koziarski <michael@koziarski.com>2006-02-10 05:19:41 +0000
committerMichael Koziarski <michael@koziarski.com>2006-02-10 05:19:41 +0000
commit5f4b66201eb9bd01be96a212adfea8fb95334380 (patch)
tree619c8ce24e8f143828d5aca229f151c55f459f99 /activerecord/test/fixtures/person.rb
parent7e6d5b51093c6fae345f6460130bbe2c495b95f4 (diff)
downloadrails-5f4b66201eb9bd01be96a212adfea8fb95334380.tar.gz
rails-5f4b66201eb9bd01be96a212adfea8fb95334380.tar.bz2
rails-5f4b66201eb9bd01be96a212adfea8fb95334380.zip
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
Diffstat (limited to 'activerecord/test/fixtures/person.rb')
-rw-r--r--activerecord/test/fixtures/person.rb5
1 files changed, 4 insertions, 1 deletions
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