Permalink
Browse files

Remove group when building the relation, it will be added later if

options[:group] is given.
  • Loading branch information...
1 parent 796ec65 commit 770fca10fba68fa14308f33e923493e6f63bfa35 @miloops miloops committed Aug 16, 2009
Showing with 0 additions and 1 deletion.
  1. +0 −1 activerecord/lib/active_record/calculations.rb
@@ -149,7 +149,6 @@ def calculate(operation, column_name, options = {})
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])

0 comments on commit 770fca1

Please sign in to comment.