diff options
author | Aaron Patterson <aaron.patterson@gmail.com> | 2011-08-29 13:39:15 -0700 |
---|---|---|
committer | Aaron Patterson <aaron.patterson@gmail.com> | 2011-08-29 13:39:15 -0700 |
commit | 8ab89f5200cdab1aa955e3217b5dd4089d50d63e (patch) | |
tree | ad92eb8270f98ffd18fd40213cd048a07ac853f9 /lib/arel/select_manager.rb | |
parent | 6c7575f8e8e7b741c2ca30aff86fe566ee4d361f (diff) | |
parent | 90ff5f1a74a8731fde4c6d915e79001addb9ef34 (diff) | |
download | rails-8ab89f5200cdab1aa955e3217b5dd4089d50d63e.tar.gz rails-8ab89f5200cdab1aa955e3217b5dd4089d50d63e.tar.bz2 rails-8ab89f5200cdab1aa955e3217b5dd4089d50d63e.zip |
Merge pull request #80 from jsanders/patch-1
Proposed fix for issue 79 - https://github.com/rails/arel/issues/79
Diffstat (limited to 'lib/arel/select_manager.rb')
-rw-r--r-- | lib/arel/select_manager.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/arel/select_manager.rb b/lib/arel/select_manager.rb index 88f26e4894..7a1fbbe438 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 + to_sql = Visitors::ToSql.new @engine.connection_pool @ctx.wheres.map { |c| to_sql.accept c } end |