mirror of
https://github.com/rails/rails.git
synced 2022-11-09 12:12:34 -05:00
solve: undefined local variable or method 'connection'
This commit is contained in:
parent
8a3eece68a
commit
6e119e95b7
1 changed files with 1 additions and 1 deletions
|
@ -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 a new issue