From 680e080bb4399312f63a699d2f103632b41be927 Mon Sep 17 00:00:00 2001 From: Nick Kallen Date: Mon, 5 May 2008 13:00:50 -0700 Subject: string passthrough for "group by" --- lib/arel/sql/formatters.rb | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'lib/arel/sql/formatters.rb') diff --git a/lib/arel/sql/formatters.rb b/lib/arel/sql/formatters.rb index 96bab2495c..5eab65726e 100644 --- a/lib/arel/sql/formatters.rb +++ b/lib/arel/sql/formatters.rb @@ -44,6 +44,12 @@ module Arel end end + class GroupClause < PassThrough + def attribute(attribute) + "#{quote_table_name(name_for(attribute.original_relation))}.#{quote_column_name(attribute.name)}" + end + end + class WhereCondition < Formatter def attribute(attribute) "#{quote_table_name(name_for(attribute.original_relation))}.#{quote_column_name(attribute.name)}" -- cgit v1.2.3