diff options
author | Aaron Patterson <aaron.patterson@gmail.com> | 2010-09-15 09:26:01 -0700 |
---|---|---|
committer | Aaron Patterson <aaron.patterson@gmail.com> | 2010-09-15 09:26:01 -0700 |
commit | ed6192c55b8e77b60e4203dc30ae056f222a1499 (patch) | |
tree | 5ea5e020eba247bd7729dd11830ce7c9292fc4ac /lib/arel/visitors | |
parent | 188fc7a46456bd3e5ebdb09ef8a753d7a34a6af5 (diff) | |
download | rails-ed6192c55b8e77b60e4203dc30ae056f222a1499.tar.gz rails-ed6192c55b8e77b60e4203dc30ae056f222a1499.tar.bz2 rails-ed6192c55b8e77b60e4203dc30ae056f222a1499.zip |
adding a grouping node
Diffstat (limited to 'lib/arel/visitors')
-rw-r--r-- | lib/arel/visitors/to_sql.rb | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/arel/visitors/to_sql.rb b/lib/arel/visitors/to_sql.rb index 46f70d0f7c..5be95565f3 100644 --- a/lib/arel/visitors/to_sql.rb +++ b/lib/arel/visitors/to_sql.rb @@ -84,6 +84,10 @@ module Arel def visit_Arel_Nodes_Lock o end + def visit_Arel_Nodes_Grouping o + "(#{visit o.expr})" + end + def visit_Arel_Nodes_Group o visit o.expr end |