From ca71bb8c99cb78fde6794cd2134b4b6147aa4426 Mon Sep 17 00:00:00 2001 From: Aaron Patterson Date: Wed, 14 Nov 2012 17:17:46 -0800 Subject: stop hardcoding FrontBase adapter conditionals --- activerecord/lib/active_record/relation/calculations.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'activerecord') diff --git a/activerecord/lib/active_record/relation/calculations.rb b/activerecord/lib/active_record/relation/calculations.rb index 83cbbc1c1d..8054294954 100644 --- a/activerecord/lib/active_record/relation/calculations.rb +++ b/activerecord/lib/active_record/relation/calculations.rb @@ -280,7 +280,7 @@ module ActiveRecord [aliaz, column_for(field)] } - group = @klass.connection.adapter_name == 'FrontBase' ? group_aliases : group_fields + group = group_fields if operation == 'count' && column_name == :all aggregate_alias = 'count_all' -- cgit v1.2.3