aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord
diff options
context:
space:
mode:
authorNicholas Seckar <nseckar@gmail.com>2006-08-12 19:29:46 +0000
committerNicholas Seckar <nseckar@gmail.com>2006-08-12 19:29:46 +0000
commit33406747d883d6c67aea4a5b96768db6acde0194 (patch)
tree6dd226b71fc668d20877a04b47aa0150c7bcdb93 /activerecord
parent02021d89b1928e9869b0038afc08cb6b3e719014 (diff)
downloadrails-33406747d883d6c67aea4a5b96768db6acde0194.tar.gz
rails-33406747d883d6c67aea4a5b96768db6acde0194.tar.bz2
rails-33406747d883d6c67aea4a5b96768db6acde0194.zip
Use require_dependency and not require to load models
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@4753 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
Diffstat (limited to 'activerecord')
-rwxr-xr-xactiverecord/lib/active_record/fixtures.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/activerecord/lib/active_record/fixtures.rb b/activerecord/lib/active_record/fixtures.rb
index 5910af75ca..9062a96f41 100755
--- a/activerecord/lib/active_record/fixtures.rb
+++ b/activerecord/lib/active_record/fixtures.rb
@@ -466,7 +466,7 @@ module Test #:nodoc:
file_name = table_name.to_s
file_name = file_name.singularize if ActiveRecord::Base.pluralize_table_names
begin
- require file_name
+ require_dependency file_name
rescue LoadError
# Let's hope the developer has included it himself
end