This project is archived and is in readonly mode.

Changeset [a7f920f674d234f281d2491ebe6d74710a79e663] by Ken Collins

November 8th, 2008 @ 02:39 AM

If average value from DB is 0, make sure to convert it to a 0.0 float before calling #to_d on it [#1346 state:resolved]

Signed-off-by: Joshua Peek josh@joshpeek.com http://github.com/rails/rails/co...

Committed by Ken Collins

  • M activerecord/lib/active_record/calculations.rb

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="https://github.com/rails/rails/issues">https://github.com/rails/rails/issues</a>