diff options
author | Rick Olson <technoweenie@gmail.com> | 2006-03-19 02:01:40 +0000 |
---|---|---|
committer | Rick Olson <technoweenie@gmail.com> | 2006-03-19 02:01:40 +0000 |
commit | 0925c6b6a06dd9fb5599d24ec9c2f4e11282bc12 (patch) | |
tree | e7ef51eb0343a1f6a255da151e458502869cd105 /activerecord/test/fixtures/author.rb | |
parent | 8463cd646ec5b8f439577a7c2ca225179709b5ed (diff) | |
download | rails-0925c6b6a06dd9fb5599d24ec9c2f4e11282bc12.tar.gz rails-0925c6b6a06dd9fb5599d24ec9c2f4e11282bc12.tar.bz2 rails-0925c6b6a06dd9fb5599d24ec9c2f4e11282bc12.zip |
Allow has_many :through to work on has_many associations (closes #3864) [sco@scottraymond.net]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3964 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
Diffstat (limited to 'activerecord/test/fixtures/author.rb')
-rw-r--r-- | activerecord/test/fixtures/author.rb | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/activerecord/test/fixtures/author.rb b/activerecord/test/fixtures/author.rb index 06b0aaa1ae..1a7aa6e388 100644 --- a/activerecord/test/fixtures/author.rb +++ b/activerecord/test/fixtures/author.rb @@ -3,6 +3,7 @@ class Author < ActiveRecord::Base has_many :posts_with_comments, :include => :comments, :class_name => "Post" has_many :posts_with_categories, :include => :categories, :class_name => "Post" has_many :posts_with_comments_and_categories, :include => [ :comments, :categories ], :order => "posts.id", :class_name => "Post" + has_many :comments, :through => :posts has_many :special_posts, :class_name => "Post" has_many :hello_posts, :class_name => "Post", :conditions=>"\#{aliased_table_name}.body = 'hello'" |