diff options
Diffstat (limited to 'lib/arel/visitors/to_sql.rb')
-rw-r--r-- | lib/arel/visitors/to_sql.rb | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/lib/arel/visitors/to_sql.rb b/lib/arel/visitors/to_sql.rb index 8e254d504b..ee72d864e1 100644 --- a/lib/arel/visitors/to_sql.rb +++ b/lib/arel/visitors/to_sql.rb @@ -107,8 +107,7 @@ module Arel end unless wheres.empty? - collector << " " if values - collector << "WHERE " + collector << " WHERE " collector = inject_join wheres, collector, " AND " end |