mirror of
https://github.com/rails/rails.git
synced 2022-11-09 12:12:34 -05:00
b57a11cb8a
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.
12 lines
246 B
Ruby
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
|