diff options
author | David Heinemeier Hansson <david@loudthinking.com> | 2005-09-20 11:23:13 +0000 |
---|---|---|
committer | David Heinemeier Hansson <david@loudthinking.com> | 2005-09-20 11:23:13 +0000 |
commit | 6a519401176126cd808aa5e3562a21f34a64de65 (patch) | |
tree | 7da966acceedfb11ceb234d796fa0250033fa6b3 /railties/lib | |
parent | 8a35865b747e0e96ae53e45997d6742f8f0ccfc3 (diff) | |
download | rails-6a519401176126cd808aa5e3562a21f34a64de65.tar.gz rails-6a519401176126cd808aa5e3562a21f34a64de65.tar.bz2 rails-6a519401176126cd808aa5e3562a21f34a64de65.zip |
Fixed memory leak with Active Record classes when Dependencies.mechanism = :load #1704 [c.r.mcgrath@gmail.com]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@2276 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
Diffstat (limited to 'railties/lib')
-rw-r--r-- | railties/lib/dispatcher.rb | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/railties/lib/dispatcher.rb b/railties/lib/dispatcher.rb index 58f00d7604..958710ad66 100644 --- a/railties/lib/dispatcher.rb +++ b/railties/lib/dispatcher.rb @@ -38,6 +38,7 @@ class Dispatcher def reset_application! Controllers.clear! Dependencies.clear + ActiveRecord::Base.reset_subclasses Dependencies.remove_subclasses_for(ActiveRecord::Base, ActiveRecord::Observer, ActionController::Base) Dependencies.remove_subclasses_for(ActionMailer::Base) if defined?(ActionMailer::Base) end |