aboutsummaryrefslogtreecommitdiffstats
path: root/lib/arel/visitors/where_sql.rb
diff options
context:
space:
mode:
Diffstat (limited to 'lib/arel/visitors/where_sql.rb')
-rw-r--r--lib/arel/visitors/where_sql.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/arel/visitors/where_sql.rb b/lib/arel/visitors/where_sql.rb
index 9816fa7a70..d59bc26cb4 100644
--- a/lib/arel/visitors/where_sql.rb
+++ b/lib/arel/visitors/where_sql.rb
@@ -1,8 +1,8 @@
module Arel
module Visitors
class WhereSql < Arel::Visitors::ToSql
- def visit_Arel_Nodes_SelectCore o
- "WHERE #{o.wheres.map { |x| visit x }.join ' AND ' }"
+ def visit_Arel_Nodes_SelectCore o, a
+ "WHERE #{o.wheres.map { |x| visit x, a }.join ' AND ' }"
end
end
end