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 [52f09eac5b3d297021ef726e04ec19f6011cb302] by Jon Leighton

Revision 52f09eac5b3d297021ef726e04ec19f6011cb302, committed 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...

7 changed files

  • 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