diff options
Diffstat (limited to 'lib/arel/visitors/where_sql.rb')
-rw-r--r-- | lib/arel/visitors/where_sql.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/arel/visitors/where_sql.rb b/lib/arel/visitors/where_sql.rb index d59bc26cb4..acd84cd631 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, a - "WHERE #{o.wheres.map { |x| visit x, a }.join ' AND ' }" + def visit_Arel_Nodes_SelectCore o + "WHERE #{o.wheres.map { |x| visit x}.join ' AND ' }" end end end |