Merge pull request #44058 from mgrunberg/has-one-through-disable-joins-associations-test

HasOneThroughDisableJoinsAssociationsTest: solve undefined local variable or method 'connection'
This commit is contained in:
Ryuta Kamizono 2022-01-04 10:07:14 +09:00 committed by GitHub
commit e91e5c9804
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -76,6 +76,6 @@ class HasOneThroughDisableJoinsAssociationsTest < ActiveRecord::TestCase
assert_no_match(/INNER JOIN/, nj)
end
assert_match(/#{Regexp.escape(connection.quote_table_name('memberships.type'))}/, no_joins.first)
assert_match(/#{Regexp.escape(Member.connection.quote_table_name('memberships.type'))}/, no_joins.first)
end
end