diff options
Diffstat (limited to 'activesupport/lib/dependencies.rb')
-rw-r--r-- | activesupport/lib/dependencies.rb | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/activesupport/lib/dependencies.rb b/activesupport/lib/dependencies.rb index 7ddc6c318e..1035bf714d 100644 --- a/activesupport/lib/dependencies.rb +++ b/activesupport/lib/dependencies.rb @@ -26,7 +26,10 @@ module Dependencies end def reload - loaded.each do |file_name| + old_loaded = loaded + clear + + old_loaded.each do |file_name| begin silence_warnings { load("#{file_name}.rb") } rescue LoadError |