diff options
author | Aaron Patterson <aaron.patterson@gmail.com> | 2010-10-12 14:28:31 -0700 |
---|---|---|
committer | Aaron Patterson <aaron.patterson@gmail.com> | 2010-10-12 14:28:31 -0700 |
commit | b43ed9d7b9d4aca1d714b1ccfe9789f8f9f7aae4 (patch) | |
tree | 38bc5f723c3b2f4599e90c55a35fa346d76a29c7 /lib | |
parent | aebc83102b23042f0dc83be1afb35f86ea381cc3 (diff) | |
download | rails-b43ed9d7b9d4aca1d714b1ccfe9789f8f9f7aae4.tar.gz rails-b43ed9d7b9d4aca1d714b1ccfe9789f8f9f7aae4.tar.bz2 rails-b43ed9d7b9d4aca1d714b1ccfe9789f8f9f7aae4.zip |
fixing manifest file
Diffstat (limited to 'lib')
-rw-r--r-- | lib/arel/visitors/where_sql.rb | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/lib/arel/visitors/where_sql.rb b/lib/arel/visitors/where_sql.rb new file mode 100644 index 0000000000..9816fa7a70 --- /dev/null +++ b/lib/arel/visitors/where_sql.rb @@ -0,0 +1,9 @@ +module Arel + module Visitors + class WhereSql < Arel::Visitors::ToSql + def visit_Arel_Nodes_SelectCore o + "WHERE #{o.wheres.map { |x| visit x }.join ' AND ' }" + end + end + end +end |