aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/test/fixtures
diff options
context:
space:
mode:
authorJefferson Lai <jefflai2@gmail.com>2014-02-10 03:00:05 -0800
committerJefferson Lai <jefflai2@gmail.com>2014-04-23 17:21:45 -0700
commit9c3afdc327132c7f1f4d05eebc0c05b715442e7d (patch)
tree9c85b61fc019ee4c5a91fa4cf02bf39fd81fe008 /activerecord/test/fixtures
parent9ed0cf51b467907810ef3959c8e9cdf77370370e (diff)
downloadrails-9c3afdc327132c7f1f4d05eebc0c05b715442e7d.tar.gz
rails-9c3afdc327132c7f1f4d05eebc0c05b715442e7d.tar.bz2
rails-9c3afdc327132c7f1f4d05eebc0c05b715442e7d.zip
Fixes Issue #13466.
Changed the call to a scope block to be evaluated with instance_eval. The result is that ScopeRegistry can use the actual class instead of base_class when caching scopes so queries made by classes with a common ancestor won't leak scopes.
Diffstat (limited to 'activerecord/test/fixtures')
-rw-r--r--activerecord/test/fixtures/ratings.yml10
1 files changed, 10 insertions, 0 deletions
diff --git a/activerecord/test/fixtures/ratings.yml b/activerecord/test/fixtures/ratings.yml
index 34e208efa3..2b45c5080e 100644
--- a/activerecord/test/fixtures/ratings.yml
+++ b/activerecord/test/fixtures/ratings.yml
@@ -2,13 +2,23 @@ normal_comment_rating:
id: 1
comment_id: 8
value: 1
+ type: Rating
special_comment_rating:
id: 2
comment_id: 6
value: 1
+ type: Rating
sub_special_comment_rating:
id: 3
comment_id: 12
value: 1
+ type: Rating
+
+special_rating:
+ id: 4
+ comment_id: 10
+ value: 1
+ type: SpecialRating
+ special_comment_id: 3