Lighthouse has a new layout. Prefer the old one? Return to the old layout, and switch back any time from the link at the top of each page.

This project is archived and is in readonly mode.

Changeset [9599948fbcd67c1c2c5fecc2dca148e998479e33] by Pratik Naik

Revision 9599948fbcd67c1c2c5fecc2dca148e998479e33, committed by Pratik Naik · October 4th, 2008 @ 08:13 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...

2 changed files

  • M activerecord/lib/active_record/calculations.rb
  • M activerecord/test/cases/calculations_test.rb