mirror of
https://github.com/rails/rails.git
synced 2022-11-09 12:12:34 -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:
parent
4df3554e8f
commit
018e7f24f0
1 changed files with 1 additions and 1 deletions
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue