Skip to content
Browse files

Fixed memory leak with Active Record classes when Dependencies.mechan…

…ism = :load #1704 [c.r.mcgrath@gmail.com]

git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@2273 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
  • Loading branch information...
1 parent a416196 commit 3c0129af6d045654284f60db26124b9324d2fa94 @dhh dhh committed
Showing with 4 additions and 0 deletions.
  1. +4 −0 activerecord/lib/active_record/base.rb
View
4 activerecord/lib/active_record/base.rb
@@ -251,6 +251,10 @@ def self.inherited(child) #:nodoc:
super
end
+ def self.reset_subclasses
+ @@subclasses.clear
+ end
+
@@subclasses = {}
cattr_accessor :configurations

0 comments on commit 3c0129a

Please sign in to comment.
Something went wrong with that request. Please try again.