blob: d59bc26cb4c3bd9aab4f1270666b231fbc1c2005 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
|
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 ' }"
end
end
end
end
|