diff options
author | Ryuta Kamizono <kamipo@gmail.com> | 2017-07-18 10:39:09 +0900 |
---|---|---|
committer | Ryuta Kamizono <kamipo@gmail.com> | 2017-07-19 00:50:40 +0900 |
commit | 9aa04315febfb37b50f52471a2837c40313a2d5f (patch) | |
tree | 2face8dcc9cc116d9e1c1d20e052e9d95e1ec080 /activerecord/test/cases/scoping | |
parent | d13f54d50a166d49c683f79d49341185788faed8 (diff) | |
download | rails-9aa04315febfb37b50f52471a2837c40313a2d5f.tar.gz rails-9aa04315febfb37b50f52471a2837c40313a2d5f.tar.bz2 rails-9aa04315febfb37b50f52471a2837c40313a2d5f.zip |
Fix unscoping `default_scope` for `Preloader`
Diffstat (limited to 'activerecord/test/cases/scoping')
-rw-r--r-- | activerecord/test/cases/scoping/default_scoping_test.rb | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/activerecord/test/cases/scoping/default_scoping_test.rb b/activerecord/test/cases/scoping/default_scoping_test.rb index 83f3868f3f..a8c79628e7 100644 --- a/activerecord/test/cases/scoping/default_scoping_test.rb +++ b/activerecord/test/cases/scoping/default_scoping_test.rb @@ -405,6 +405,8 @@ class DefaultScopingTest < ActiveRecord::TestCase assert_equal post, Post.joins(:special_comments).find(post.id) assert_equal comments, Post.joins(:special_comments).find(post.id).special_comments assert_equal comments, Post.eager_load(:special_comments).find(post.id).special_comments + assert_equal comments, Post.includes(:special_comments).find(post.id).special_comments + assert_equal comments, Post.preload(:special_comments).find(post.id).special_comments end end |