aboutsummaryrefslogblamecommitdiffstats
path: root/lib/arel/visitors/where_sql.rb
blob: 27dde73673737869cd6e151df90a912b7f80d216 (plain) (tree)
1
2
3
4
5
6
7
8
9
10


                                          


                                                  



         
module Arel
  module Visitors
    class WhereSql < Arel::Visitors::ToSql
      def visit_Arel_Nodes_SelectCore o, collector
        collector << "WHERE "
        inject_join o.wheres, collector, ' AND '
      end
    end
  end
end