Class: Arel::Visitors::WhereSql

Inherits:
ToSql show all
Defined in:
lib/arel/visitors/where_sql.rb

Constant Summary

Constants inherited from ToSql

ToSql::AND, ToSql::COMMA, ToSql::DISTINCT, ToSql::GROUP_BY, ToSql::ORDER_BY, ToSql::SPACE, ToSql::WHERE, ToSql::WINDOW

Instance Method Summary collapse

Methods inherited from ToSql

#initialize

Methods inherited from Visitor

#accept

Constructor Details

This class inherits a constructor from Arel::Visitors::ToSql

Instance Method Details

#visit_Arel_Nodes_SelectCore(o, a) ⇒ Object



4
5
6
# File 'lib/arel/visitors/where_sql.rb', line 4

def visit_Arel_Nodes_SelectCore o, a
  "WHERE #{o.wheres.map { |x| visit x, a }.join ' AND ' }"
end