From 770fca10fba68fa14308f33e923493e6f63bfa35 Mon Sep 17 00:00:00 2001 From: Emilio Tagua Date: Sun, 16 Aug 2009 17:27:45 -0300 Subject: Remove group when building the relation, it will be added later if options[:group] is given. --- activerecord/lib/active_record/calculations.rb | 1 - 1 file changed, 1 deletion(-) diff --git a/activerecord/lib/active_record/calculations.rb b/activerecord/lib/active_record/calculations.rb index 658101d8ee..82a171c6ad 100644 --- a/activerecord/lib/active_record/calculations.rb +++ b/activerecord/lib/active_record/calculations.rb @@ -149,7 +149,6 @@ module ActiveRecord arel_table(options[:from]). join(construct_join(options[:joins], scope)). where(construct_conditions(options[:conditions], scope)). - group(construct_group(options[:group], options[:having], scope)). order(options[:order]). take(options[:limit]). skip(options[:offset]) -- cgit v1.2.3