Minor tweak

git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@481 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
This commit is contained in:
David Heinemeier Hansson
2005-01-24 00:34:08 +00:00
parent 25eaf062c2
commit ae690e8fe4

View File

@@ -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