This project is archived and is in readonly mode.

Changeset [78feaf6be75a5fcb766a7d1dcedd52e890561081] by Pratik Naik

October 4th, 2008 @ 08:07 PM

Ensure Model.sum and Model.avg typecast appropriately. [#1066 state:resolved]

Model.sum delegates typecasting to the column being summed. If that's not feasible, returns a string. Model.avg always returns big decimal. http://github.com/rails/rails/co...

Committed by Pratik Naik

  • M activerecord/lib/active_record/calculations.rb
  • M activerecord/test/cases/calculations_test.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>