This project is archived and is in readonly mode.

Changeset [2ea922bcec333b6484a295b4fee1f4fa75c5704d] 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...

Committed by Tarmo Tänav

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

Create your profile

Help contribute to this project by taking a few moments to create your personal profile. Create your profile »

<h2 style="font-size: 14px">Tickets have moved to Github</h2>

The new ticket tracker is available at <a href="https://github.com/rails/rails/issues">https://github.com/rails/rails/issues</a>