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