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:
parent
0e4473ca93
commit
632cb80c1b
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue