Class: Arel::Visitors::WhereSql
- 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
Methods inherited from Visitor
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 |