1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00

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

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