From 6e05eef9e94dd8f5138bab591d9dbe926498e6ed Mon Sep 17 00:00:00 2001 From: Aaron Patterson Date: Tue, 7 Sep 2010 15:47:38 -0700 Subject: group nodes are working! --- lib/arel/select_manager.rb | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'lib/arel/select_manager.rb') diff --git a/lib/arel/select_manager.rb b/lib/arel/select_manager.rb index c9214b20a2..3ac6a5cbc8 100644 --- a/lib/arel/select_manager.rb +++ b/lib/arel/select_manager.rb @@ -13,6 +13,13 @@ module Arel self end + def group *columns + columns.each do |column| + @ctx.groups.push Nodes::Group.new column + end + self + end + def from table @ctx.froms << table self -- cgit v1.2.3