diff options
author | David Heinemeier Hansson <david@loudthinking.com> | 2005-01-24 00:34:08 +0000 |
---|---|---|
committer | David Heinemeier Hansson <david@loudthinking.com> | 2005-01-24 00:34:08 +0000 |
commit | ae690e8fe4b81c1465e6672080aa2140ef16212a (patch) | |
tree | c35cf27f1bc36ed51d160889b5b6ad70b3304444 | |
parent | 25eaf062c2b2c19025d85da1d6fb667afc63a642 (diff) | |
download | rails-ae690e8fe4b81c1465e6672080aa2140ef16212a.tar.gz rails-ae690e8fe4b81c1465e6672080aa2140ef16212a.tar.bz2 rails-ae690e8fe4b81c1465e6672080aa2140ef16212a.zip |
Minor tweak
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@481 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
-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 |