1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00
rails--rails/lib/arel/visitors/where_sql.rb
2010-10-12 14:28:31 -07:00

9 lines
203 B
Ruby

module Arel
module Visitors
class WhereSql < Arel::Visitors::ToSql
def visit_Arel_Nodes_SelectCore o
"WHERE #{o.wheres.map { |x| visit x }.join ' AND ' }"
end
end
end
end