From 018e7f24f0a7a74ad52eb342c7d64fb66d7ae983 Mon Sep 17 00:00:00 2001 From: David Heinemeier Hansson Date: Mon, 27 Feb 2006 05:26:42 +0000 Subject: Only load .yml files in sub-directories git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3685 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 3254781764..789190fe79 100755 --- a/activerecord/lib/active_record/fixtures.rb +++ b/activerecord/lib/active_record/fixtures.rb @@ -292,7 +292,7 @@ class Fixtures < YAML::Omap # YAML fixtures begin yaml_string = "" - Dir["#{@fixture_path}/**/*"].select {|f| test(?f,f) }.each do |subfixture_path| + Dir["#{@fixture_path}/**/*.yml"].select {|f| test(?f,f) }.each do |subfixture_path| yaml_string << IO.read(subfixture_path) end yaml_string << IO.read(yaml_file_path) -- cgit v1.2.3