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 [1e53404fe9c39ad0849894d73e431315be8c0bf0] by Neeraj Singh

Revision 1e53404fe9c39ad0849894d73e431315be8c0bf0, committed by Neeraj Singh · July 8th, 2010 @ 10:24 PM

reset_counter should work with non-traditional belongs_to and polymorphic belongs_to

[#4984 state:resolved]

Signed-off-by: José Valim jose.valim@gmail.com
http://github.com/rails/rails/commit/1e53404fe9c39ad0849894d73e4313...

7 changed files

  • A activerecord/test/fixtures/cars.yml
  • A activerecord/test/models/car.rb
  • A activerecord/test/models/engine.rb
  • A activerecord/test/models/wheel.rb
  • M activerecord/lib/active_record/counter_cache.rb
  • M activerecord/test/cases/counter_cache_test.rb
  • M activerecord/test/schema/schema.rb