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:
parent
d8207adb5f
commit
7022dd9c05
1 changed files with 1 additions and 5 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue