aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/lib
diff options
context:
space:
mode:
authorDavid Heinemeier Hansson <david@loudthinking.com>2005-09-20 10:33:26 +0000
committerDavid Heinemeier Hansson <david@loudthinking.com>2005-09-20 10:33:26 +0000
commit3c0129af6d045654284f60db26124b9324d2fa94 (patch)
treef80400d0a5ef9a116d8715f3cd0ab339cae13572 /activerecord/lib
parenta41619681f7bbf558989b377df8eb8987b694943 (diff)
downloadrails-3c0129af6d045654284f60db26124b9324d2fa94.tar.gz
rails-3c0129af6d045654284f60db26124b9324d2fa94.tar.bz2
rails-3c0129af6d045654284f60db26124b9324d2fa94.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@2273 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
Diffstat (limited to 'activerecord/lib')
-rwxr-xr-xactiverecord/lib/active_record/base.rb4
1 files changed, 4 insertions, 0 deletions
diff --git a/activerecord/lib/active_record/base.rb b/activerecord/lib/active_record/base.rb
index c761153941..73c69a91d1 100755
--- a/activerecord/lib/active_record/base.rb
+++ b/activerecord/lib/active_record/base.rb
@@ -251,6 +251,10 @@ module ActiveRecord #:nodoc:
super
end
+ def self.reset_subclasses
+ @@subclasses.clear
+ end
+
@@subclasses = {}
cattr_accessor :configurations