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 [2ea922bcec333b6484a295b4fee1f4fa75c5704d] by Tarmo Tänav

Revision 2ea922bcec333b6484a295b4fee1f4fa75c5704d, committed by Tarmo Tänav · July 30th, 2010 @ 02:37 AM

Don't increment and then decrement the same counter when re-assigning a belongs_to association

[#2786 state:committed]

Signed-off-by: Santiago Pastorino santiago@wyeworks.com
http://github.com/rails/rails/commit/2ea922bcec333b6484a295b4fee1f4...

2 changed files

  • M activerecord/lib/active_record/associations/belongs_to_association.rb
  • M activerecord/test/cases/associations/belongs_to_associations_test.rb