Ticket #1689: fix_calculations.diff
| File fix_calculations.diff, 0.6 kB (added by fcheung, 10 months ago) |
|---|
-
activerecord/lib/active_record/calculations.rb
old new 230 230 key = type_cast_calculated_value(row[group_alias], group_column) 231 231 key = key_records[key] if associated 232 232 value = row[aggregate_alias] 233 all << [key, type_cast_calculated_value(value, column, operation)] 233 all[key]= type_cast_calculated_value(value, column, operation) 234 all 234 235 end 235 236 end 236 237