aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/test/models
diff options
context:
space:
mode:
authorJon Leighton <j@jonathanleighton.com>2010-10-14 13:07:28 +0100
committerJon Leighton <j@jonathanleighton.com>2010-10-14 13:07:28 +0100
commit7963c30ebaeb511f7ddacc99ae2c7a530059ae6b (patch)
tree91e9811e1e18890cb8bb68fc28790bcbc2be42ad /activerecord/test/models
parentbc821a56114ae6f6d0b595475ad9e71f01f46f35 (diff)
downloadrails-7963c30ebaeb511f7ddacc99ae2c7a530059ae6b.tar.gz
rails-7963c30ebaeb511f7ddacc99ae2c7a530059ae6b.tar.bz2
rails-7963c30ebaeb511f7ddacc99ae2c7a530059ae6b.zip
Add test_has_many_through_has_many_through_with_belongs_to_source_reflection (which already works)
Diffstat (limited to 'activerecord/test/models')
-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 f2f373af8c..b5f702018a 100644
--- a/activerecord/test/models/author.rb
+++ b/activerecord/test/models/author.rb
@@ -89,6 +89,7 @@ class Author < ActiveRecord::Base
has_many :similar_posts, :through => :tags, :source => :tagged_posts
has_many :distinct_tags, :through => :posts, :source => :tags, :select => "DISTINCT tags.*", :order => "tags.name"
has_many :post_categories, :through => :posts, :source => :categories
+ has_many :tagging_tags, :through => :taggings, :source => :tag
has_many :books
has_many :subscriptions, :through => :books