1
0
Fork 0
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:
jsanders 2011-08-29 16:10:45 -06:00
parent 6c7575f8e8
commit 90ff5f1a74

View file

@ -51,7 +51,7 @@ module Arel
if $VERBOSE if $VERBOSE
warn "(#{caller.first}) where_clauses is deprecated and will be removed in arel 3.0.0 with no replacement" warn "(#{caller.first}) where_clauses is deprecated and will be removed in arel 3.0.0 with no replacement"
end end
to_sql = Visitors::ToSql.new @engine to_sql = Visitors::ToSql.new @engine.connection_pool
@ctx.wheres.map { |c| to_sql.accept c } @ctx.wheres.map { |c| to_sql.accept c }
end end