diff options
author | Aaron Patterson <aaron.patterson@gmail.com> | 2014-10-14 16:39:57 -0700 |
---|---|---|
committer | Aaron Patterson <aaron.patterson@gmail.com> | 2014-10-14 16:39:57 -0700 |
commit | 2eee8af4d058b60323b60dd1a56c247e485c0835 (patch) | |
tree | beb6bc9e3a88cfc5117095184943a874d37957ef /activerecord/test/models | |
parent | b59d47d82e6ecb4308b675875b5a62c79858645e (diff) | |
download | rails-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.rb | 1 |
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 |