diff options
author | Ryuta Kamizono <kamipo@gmail.com> | 2018-09-11 21:41:11 +0900 |
---|---|---|
committer | Ryuta Kamizono <kamipo@gmail.com> | 2018-09-11 21:41:11 +0900 |
commit | 517a54501d2de1225327296adde8efb91774b237 (patch) | |
tree | a4c4809d11acba2f87af5ed29c62fe470659765a /activerecord/test | |
parent | 4895e5cfc753a7145b02edeb48a80824dda57cba (diff) | |
download | rails-517a54501d2de1225327296adde8efb91774b237.tar.gz rails-517a54501d2de1225327296adde8efb91774b237.tar.bz2 rails-517a54501d2de1225327296adde8efb91774b237.zip |
Don't expose `current_scope` for internal use
Diffstat (limited to 'activerecord/test')
-rw-r--r-- | activerecord/test/cases/scoping/relation_scoping_test.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/activerecord/test/cases/scoping/relation_scoping_test.rb b/activerecord/test/cases/scoping/relation_scoping_test.rb index 544adc9b39..b4f4379e5e 100644 --- a/activerecord/test/cases/scoping/relation_scoping_test.rb +++ b/activerecord/test/cases/scoping/relation_scoping_test.rb @@ -236,8 +236,8 @@ class RelationScopingTest < ActiveRecord::TestCase SpecialComment.unscoped.created end - assert_nil Comment.current_scope - assert_nil SpecialComment.current_scope + assert_nil Comment.send(:current_scope) + assert_nil SpecialComment.send(:current_scope) end def test_scoping_respects_current_class |