Skip to content

Commit

Permalink
Only load .yml files in sub-directories
Browse files Browse the repository at this point in the history
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3685 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
  • Loading branch information
dhh committed Feb 27, 2006
1 parent 4df3554 commit 018e7f2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion activerecord/lib/active_record/fixtures.rb
Original file line number Diff line number Diff line change
Expand Up @@ -292,7 +292,7 @@ def read_fixture_files
# 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)
Expand Down

0 comments on commit 018e7f2

Please sign in to comment.