Permalink
Browse files

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
  • Loading branch information...
1 parent 02021d8 commit 33406747d883d6c67aea4a5b96768db6acde0194 @seckar seckar committed Aug 12, 2006
Showing with 1 addition and 1 deletion.
  1. +1 −1 activerecord/lib/active_record/fixtures.rb
@@ -466,7 +466,7 @@ def self.require_fixture_classes(table_names=nil)
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

0 comments on commit 3340674

Please sign in to comment.