From 7022dd9c05064ef914f8836fb5e8b2d2ee3c02ed Mon Sep 17 00:00:00 2001 From: David Heinemeier Hansson Date: Fri, 26 Nov 2004 00:19:47 +0000 Subject: 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 --- activerecord/lib/active_record/associations.rb | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) (limited to 'activerecord') diff --git a/activerecord/lib/active_record/associations.rb b/activerecord/lib/active_record/associations.rb index 6285a59882..596542c9d6 100755 --- a/activerecord/lib/active_record/associations.rb +++ b/activerecord/lib/active_record/associations.rb @@ -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 -- cgit v1.2.3