diff options
author | David Heinemeier Hansson <david@loudthinking.com> | 2004-11-26 00:19:47 +0000 |
---|---|---|
committer | David Heinemeier Hansson <david@loudthinking.com> | 2004-11-26 00:19:47 +0000 |
commit | 7022dd9c05064ef914f8836fb5e8b2d2ee3c02ed (patch) | |
tree | 16bcc52e57be646ed83e06f4341b04b438256f0c /activerecord/lib/active_record | |
parent | d8207adb5f59693e7c00fb17dc9a28fd10a8c1a0 (diff) | |
download | rails-7022dd9c05064ef914f8836fb5e8b2d2ee3c02ed.tar.gz rails-7022dd9c05064ef914f8836fb5e8b2d2ee3c02ed.tar.bz2 rails-7022dd9c05064ef914f8836fb5e8b2d2ee3c02ed.zip |
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
Diffstat (limited to 'activerecord/lib/active_record')
-rwxr-xr-x | activerecord/lib/active_record/associations.rb | 6 |
1 files changed, 1 insertions, 5 deletions
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 |