diff options
-rw-r--r-- | activesupport/lib/dependencies.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/activesupport/lib/dependencies.rb b/activesupport/lib/dependencies.rb index 38197bff6d..96dcd7acb8 100644 --- a/activesupport/lib/dependencies.rb +++ b/activesupport/lib/dependencies.rb @@ -11,9 +11,9 @@ module Dependencies def depend_on(file_name, swallow_load_errors = false) if !loaded.include?(file_name) + loaded << file_name begin require_or_load(file_name) - loaded << file_name rescue LoadError raise unless swallow_load_errors end |