aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord
diff options
context:
space:
mode:
authorDavid Heinemeier Hansson <david@loudthinking.com>2004-11-26 00:19:47 +0000
committerDavid Heinemeier Hansson <david@loudthinking.com>2004-11-26 00:19:47 +0000
commit7022dd9c05064ef914f8836fb5e8b2d2ee3c02ed (patch)
tree16bcc52e57be646ed83e06f4341b04b438256f0c /activerecord
parentd8207adb5f59693e7c00fb17dc9a28fd10a8c1a0 (diff)
downloadrails-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')
-rwxr-xr-xactiverecord/lib/active_record/associations.rb6
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