diff options
author | Nicholas Seckar <nseckar@gmail.com> | 2006-08-12 19:29:46 +0000 |
---|---|---|
committer | Nicholas Seckar <nseckar@gmail.com> | 2006-08-12 19:29:46 +0000 |
commit | 33406747d883d6c67aea4a5b96768db6acde0194 (patch) | |
tree | 6dd226b71fc668d20877a04b47aa0150c7bcdb93 /activerecord | |
parent | 02021d89b1928e9869b0038afc08cb6b3e719014 (diff) | |
download | rails-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-x | activerecord/lib/active_record/fixtures.rb | 2 |
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 |