Skip to content
Browse files

Keep quiet about failing to load association classes. People know wha…

…t theyre doing.

git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@16 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
  • Loading branch information...
1 parent d8207ad commit 7022dd9c05064ef914f8836fb5e8b2d2ee3c02ed @dhh dhh committed Nov 26, 2004
Showing with 1 addition and 5 deletions.
  1. +1 −5 activerecord/lib/active_record/associations.rb
View
6 activerecord/lib/active_record/associations.rb
@@ -564,11 +564,7 @@ def require_association_class(class_name)
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

0 comments on commit 7022dd9

Please sign in to comment.
Something went wrong with that request. Please try again.