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.

There was a problem

You must be a member of this account.

Chris Schumann's latest activity

Tuesday, March 17 2009
2269 Enumerable#sum not called on some association collections was updated in Ruby on Rails
  • Chris Schumann
    Chris Schumann commented at 3:24 PM

    A failing unit test:

    
    # test/unit/child_test.rb
    require 'test_helper'
    
    class ChildTest < ActiveSupport::TestCase
      test "should sum ids" do
        p = Paren...
  • Chris Schumann
    Chris Schumann created the ticket at 1:40 PM

    In Rails 2.3.2, Enumerable#sum is not always called on arrays that are association collections. If you have a simple parent-child relationship, the code parent....