This project is archived and is in readonly mode.

Changeset [52f09eac5b3d297021ef726e04ec19f6011cb302] by Jon Leighton

February 7th, 2011 @ 11:35 PM

Correctly update counter caches on deletion for has_many :through [#2824 state:resolved]. Also fixed a bunch of other counter cache bugs in the process, as once I fixed this one others started appearing like nobody's business.
https://github.com/rails/rails/commit/52f09eac5b3d297021ef726e04ec1...

Committed by Jon Leighton

  • M activerecord/lib/active_record/associations/has_many_association.rb
  • M activerecord/lib/active_record/associations/has_many_through_association.rb
  • M activerecord/test/cases/associations/has_many_associations_test.rb
  • M activerecord/test/cases/associations/has_many_through_associations_test.rb
  • M activerecord/test/fixtures/posts.yml
  • M activerecord/test/models/post.rb
  • M activerecord/test/schema/schema.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>