Only load .yml files in sub-directories

git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3685 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
上级 4df3554e
......@@ -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)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册