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:
commit
e91e5c9804
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue