diff options
author | Aaron Patterson <aaron.patterson@gmail.com> | 2011-11-19 18:57:36 -0800 |
---|---|---|
committer | Aaron Patterson <aaron.patterson@gmail.com> | 2011-11-19 18:57:36 -0800 |
commit | c5f9fbf0d66ddeaf1fb2992e696ffe88244bda82 (patch) | |
tree | 2f876d9e77610f611fb2cbb3ef0e7bdea485229b /lib/arel/select_manager.rb | |
parent | 9a0b1c4001869a05200effed883a8ef8bd3ddac9 (diff) | |
download | rails-c5f9fbf0d66ddeaf1fb2992e696ffe88244bda82.tar.gz rails-c5f9fbf0d66ddeaf1fb2992e696ffe88244bda82.tar.bz2 rails-c5f9fbf0d66ddeaf1fb2992e696ffe88244bda82.zip |
calling cache methods against the connection
Diffstat (limited to 'lib/arel/select_manager.rb')
-rw-r--r-- | lib/arel/select_manager.rb | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/lib/arel/select_manager.rb b/lib/arel/select_manager.rb index ce8a9caf23..82b73cf3aa 100644 --- a/lib/arel/select_manager.rb +++ b/lib/arel/select_manager.rb @@ -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.connection_pool + to_sql = Visitors::ToSql.new @engine.connection @ctx.wheres.map { |c| to_sql.accept c } end @@ -161,13 +161,13 @@ module Arel def wheres warn "#{caller[0]}: SelectManager#wheres is deprecated and will be removed in ARel 3.0.0 with no replacement" - Compatibility::Wheres.new @engine.connection_pool, @ctx.wheres + Compatibility::Wheres.new @engine.connection, @ctx.wheres end def where_sql return if @ctx.wheres.empty? - viz = Visitors::WhereSql.new @engine.connection_pool + viz = Visitors::WhereSql.new @engine.connection Nodes::SqlLiteral.new viz.accept @ctx end @@ -222,7 +222,7 @@ module Arel end def order_clauses - visitor = Visitors::OrderClauses.new(@engine.connection_pool) + visitor = Visitors::OrderClauses.new(@engine.connection) visitor.accept(@ast).map { |x| Nodes::SqlLiteral.new x } |