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 [78feaf6be75a5fcb766a7d1dcedd52e890561081] by Pratik Naik

Revision 78feaf6be75a5fcb766a7d1dcedd52e890561081, committed 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...

2 changed files

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