mirror of
https://github.com/rails/rails.git
synced 2022-11-09 12:12:34 -05:00
Proposed fix for issue 79 - https://github.com/rails/arel/issues/79 - Pass the connection_pool to the ToSql initializer, rather than the engine itself.
This commit is contained in:
parent
6c7575f8e8
commit
90ff5f1a74
1 changed files with 1 additions and 1 deletions
|
@ -51,7 +51,7 @@ module Arel
|
|||
if $VERBOSE
|
||||
warn "(#{caller.first}) where_clauses is deprecated and will be removed in arel 3.0.0 with no replacement"
|
||||
end
|
||||
to_sql = Visitors::ToSql.new @engine
|
||||
to_sql = Visitors::ToSql.new @engine.connection_pool
|
||||
@ctx.wheres.map { |c| to_sql.accept c }
|
||||
end
|
||||
|
||||
|
|
Loading…
Reference in a new issue