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
Aaron Patterson b57a11cb8a move the dispatch table to be per-instance
visitors are not shared among threads, so any mutations to the cache
should be OK.  The cache is also pre-populated on construction, but we
should pull that out so we can share the cache among visitors in the
future.
2014-09-22 11:01:03 -07:00

12 lines
246 B
Ruby

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