aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/test/models
diff options
context:
space:
mode:
authorAaron Patterson <aaron.patterson@gmail.com>2014-10-14 16:39:57 -0700
committerAaron Patterson <aaron.patterson@gmail.com>2014-10-14 16:39:57 -0700
commit2eee8af4d058b60323b60dd1a56c247e485c0835 (patch)
treebeb6bc9e3a88cfc5117095184943a874d37957ef /activerecord/test/models
parentb59d47d82e6ecb4308b675875b5a62c79858645e (diff)
downloadrails-2eee8af4d058b60323b60dd1a56c247e485c0835.tar.gz
rails-2eee8af4d058b60323b60dd1a56c247e485c0835.tar.bz2
rails-2eee8af4d058b60323b60dd1a56c247e485c0835.zip
make sure cache is not used for collection assocations too
follow up for #17052
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 8949cf5826..3f34d09a04 100644
--- a/activerecord/test/models/author.rb
+++ b/activerecord/test/models/author.rb
@@ -44,6 +44,7 @@ class Author < ActiveRecord::Base
has_many :special_posts
has_many :special_post_comments, :through => :special_posts, :source => :comments
+ has_many :special_posts_with_default_scope, :class_name => 'SpecialPostWithDefaultScope'
has_many :sti_posts, :class_name => 'StiPost'
has_many :sti_post_comments, :through => :sti_posts, :source => :comments