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.

Sum on associations should return 0 when no rows are returned

#295

This works when calling sum directly on a model, but not on an association. Patch attached.

Reported by Jonathan Viney · June 2nd, 2008 @ 04:05 AM

State: resolved
Milestone: none
Assigned to: nobody
Importance: none

Activity

  1. Repository
    Repository
    • State changed from new to resolved

    (from [4210d85a3f3ce4e980f473e9ed2becb84b58363b]) Ensure Associations#sum returns 0 when no rows are returned. [#295 state:resolved]

    Signed-off-by: Pratik Naik

    http://github.com/rails/rails/co...

    June 2nd, 2008 @ 12:52 PM

  2. Repository
    Repository

    (from [f657371fc372101c2eec30f66417e972af265a4c]) Ensure Associations#sum returns 0 when no rows are returned. [#295 state:resolved]

    Signed-off-by: Pratik Naik

    http://github.com/rails/rails/co...

    June 3rd, 2008 @ 01:01 AM