mirror of
https://github.com/github/rails.git
synced 2026-04-26 03:00:59 -04:00
Minor tweak
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@481 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user