aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/test/models
diff options
context:
space:
mode:
authorJon Leighton <j@jonathanleighton.com>2010-10-13 18:36:51 +0100
committerJon Leighton <j@jonathanleighton.com>2010-10-13 18:36:51 +0100
commit212fdd8ba9624f61421a7a950283537a3d39ac18 (patch)
treed9b0fef0f9e993d5a4e3a238402aed4609051550 /activerecord/test/models
parent5d8bb060909339d858151ca24bf764c642bf2b12 (diff)
downloadrails-212fdd8ba9624f61421a7a950283537a3d39ac18.tar.gz
rails-212fdd8ba9624f61421a7a950283537a3d39ac18.tar.bz2
rails-212fdd8ba9624f61421a7a950283537a3d39ac18.zip
Add test_has_many_through_has_and_belongs_to_many_with_has_many_source_reflection and make it work
Diffstat (limited to 'activerecord/test/models')
-rw-r--r--activerecord/test/models/category.rb2
1 files changed, 2 insertions, 0 deletions
diff --git a/activerecord/test/models/category.rb b/activerecord/test/models/category.rb
index 48415846dd..c933943813 100644
--- a/activerecord/test/models/category.rb
+++ b/activerecord/test/models/category.rb
@@ -23,6 +23,8 @@ class Category < ActiveRecord::Base
has_many :categorizations
has_many :authors, :through => :categorizations, :select => 'authors.*, categorizations.post_id'
+
+ has_many :post_comments, :through => :posts, :source => :comments
end
class SpecialCategory < Category