diff options
author | Jon Leighton <j@jonathanleighton.com> | 2010-10-14 12:59:16 +0100 |
---|---|---|
committer | Jon Leighton <j@jonathanleighton.com> | 2010-10-14 12:59:16 +0100 |
commit | bc821a56114ae6f6d0b595475ad9e71f01f46f35 (patch) | |
tree | 68f73c478155eec9c722c4cf7ab194938385ccc5 /activerecord/test/models | |
parent | 22782e2cc131863b72e457636f9a995a6ae50136 (diff) | |
download | rails-bc821a56114ae6f6d0b595475ad9e71f01f46f35.tar.gz rails-bc821a56114ae6f6d0b595475ad9e71f01f46f35.tar.bz2 rails-bc821a56114ae6f6d0b595475ad9e71f01f46f35.zip |
Added test_has_many_through_has_many_with_has_many_through_habtm_source_reflection and make it pass
Diffstat (limited to 'activerecord/test/models')
-rw-r--r-- | activerecord/test/models/author.rb | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/activerecord/test/models/author.rb b/activerecord/test/models/author.rb index 584164f19a..f2f373af8c 100644 --- a/activerecord/test/models/author.rb +++ b/activerecord/test/models/author.rb @@ -101,6 +101,7 @@ class Author < ActiveRecord::Base belongs_to :author_address_extra, :dependent => :delete, :class_name => "AuthorAddress" has_many :post_categories, :through => :posts, :source => :categories + has_many :category_post_comments, :through => :categories, :source => :post_comments scope :relation_include_posts, includes(:posts) scope :relation_include_tags, includes(:tags) |