1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00

includes, preload, joins, and eager_load are public methods

This commit is contained in:
Akira Matsuda 2020-10-02 21:57:42 +09:00
parent 0e4473ca93
commit 632cb80c1b

View file

@ -378,7 +378,7 @@ class NestedThroughAssociationsTest < ActiveRecord::TestCase
prev_default_scope = Club.default_scopes
[:includes, :preload, :joins, :eager_load].each do |q|
Club.default_scopes = [proc { Club.send(q, :category) }]
Club.default_scopes = [proc { Club.public_send(q, :category) }]
assert_equal categories(:general), members(:groucho).reload.club_category
end
ensure