aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--activesupport/lib/dependencies.rb1
1 files changed, 1 insertions, 0 deletions
diff --git a/activesupport/lib/dependencies.rb b/activesupport/lib/dependencies.rb
index dc6c852c12..93c40fed1c 100644
--- a/activesupport/lib/dependencies.rb
+++ b/activesupport/lib/dependencies.rb
@@ -32,6 +32,7 @@ module Dependencies
old_loaded.each do |file_name|
begin
silence_warnings { load("#{file_name}.rb") } unless loaded.include?(file_name)
+ loaded << file_name
rescue LoadError
# The association didn't reside in its own file, so we assume it was required by other means
end