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 [88df88095c82cde53501abe2a44f6c1f66c272b4] by Jon Leighton

Revision 88df88095c82cde53501abe2a44f6c1f66c272b4, committed by Jon Leighton · January 30th, 2011 @ 11:58 AM

AssociationCollection#to_ary should definitely dup the target! Also changed #replace which was previously incorrect, but the test passed due to the fact that to_a was not duping.
https://github.com/rails/rails/commit/88df88095c82cde53501abe2a44f6...

2 changed files

  • M activerecord/lib/active_record/associations/association_collection.rb
  • M activerecord/test/cases/associations/has_many_associations_test.rb