aboutsummaryrefslogtreecommitdiffstats
path: root/lib/arel/visitors/where_sql.rb
blob: 9816fa7a70c255435d5fcf92d355ab588141c267 (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
        "WHERE #{o.wheres.map { |x| visit x }.join ' AND ' }"
      end
    end
  end
end