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 [8be3e09fcfb26c181f458e8d3e333b3987bd5c4f] by Mislav Marohnić

Revision 8be3e09fcfb26c181f458e8d3e333b3987bd5c4f, committed by Mislav Marohnić · April 17th, 2010 @ 02:13 AM

fix reset_counters to work even with complex class names

e.g. it guesses that a belongs_to association to Namespace::MyModel is
named "my_model", unlike before where it would look up an association
named "namespace::mymodel" and fail.
http://github.com/rails/rails/commit/8be3e09fcfb26c181f458e8d3e333b...

2 changed files

  • M activerecord/lib/active_record/base.rb
  • M activerecord/test/cases/counter_cache_test.rb