Keep quiet about failing to load association classes. People know what theyre doing.

git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@16 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
This commit is contained in:
David Heinemeier Hansson 2004-11-26 00:19:47 +00:00
parent d8207adb5f
commit 7022dd9c05
1 changed files with 1 additions and 5 deletions

View File

@ -564,11 +564,7 @@ module ActiveRecord
begin
require(Inflector.underscore(class_name))
rescue LoadError
if logger
logger.info "#{self.to_s} failed to require #{class_name}"
else
STDERR << "#{self.to_s} failed to require #{class_name}\n"
end
# Failed to load the associated class -- let's hope the developer is doing the requiring himself.
end
end
end