mirror of
https://github.com/github/rails.git
synced 2026-01-29 08:18:03 -05:00
Only load .yml files in sub-directories
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3685 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user