192 193 194 195 196
# File 'activerecord/lib/arel/select_manager.rb', line 192 def where_sql(engine = Table.engine) return if @ctx.wheres.empty? Nodes::SqlLiteral.new("WHERE #{Nodes::And.new(@ctx.wheres).to_sql(engine)}") end