From 33406747d883d6c67aea4a5b96768db6acde0194 Mon Sep 17 00:00:00 2001 From: Nicholas Seckar Date: Sat, 12 Aug 2006 19:29:46 +0000 Subject: 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 --- activerecord/lib/active_record/fixtures.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'activerecord') 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 -- cgit v1.2.3