This project is archived and is in readonly mode.

#1066 ✓resolved

Associations#sum no longer returns a BigDecimal

Reported by crafterm | September 18th, 2008 @ 07:00 AM | in 2.1.2

Hi All,

Hope all is going well.

Integrity tests in our application started failing after an upgrade from Rails 2.1.0 to 2.1.1 due to a change in Associations#sum. In 2.1.0 Associations#sum returned a BigDecimal, in Rails 2.1.1 returns a Float.

I think returning a big decimal should be preferred due to the imprecise nature of floats.



Comments and changes to this ticket

Create your profile

Help contribute to this project by taking a few moments to create your personal profile. Create your profile »

<h2 style="font-size: 14px">Tickets have moved to Github</h2>

The new ticket tracker is available at <a href=""></a>


Referenced by