Class: Arel::Visitors::WhereSql

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

Instance Attribute Summary

Attributes inherited from ToSql

#last_column

Instance Method Summary collapse

Methods inherited from ToSql

#accept, #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) ⇒ Object



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

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