aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/test/models/author.rb
diff options
context:
space:
mode:
authorJon Leighton <j@jonathanleighton.com>2010-10-14 12:59:16 +0100
committerJon Leighton <j@jonathanleighton.com>2010-10-14 12:59:16 +0100
commitbc821a56114ae6f6d0b595475ad9e71f01f46f35 (patch)
tree68f73c478155eec9c722c4cf7ab194938385ccc5 /activerecord/test/models/author.rb
parent22782e2cc131863b72e457636f9a995a6ae50136 (diff)
downloadrails-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/author.rb')
-rw-r--r--activerecord/test/models/author.rb1
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)