提交 d70d5219 编写于 作者: J Jamis Buck

Don't search a load-path of '.' for controller files, since it may include...

Don't search a load-path of '.' for controller files, since it may include symlinks to all kinds of things and result in far too many irrelevant files being considered


git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@4625 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
上级 9d17f882
*SVN* *SVN*
* Don't search a load-path of '.' for controller files [Jamis Buck]
* Update integration.rb to require test_process explicitly instead of via Dependencies. [Nicholas Seckar] * Update integration.rb to require test_process explicitly instead of via Dependencies. [Nicholas Seckar]
* Fixed that you can still access the flash after the flash has been reset in reset_session. Closes #5584 [lmarlow@yahoo.com] * Fixed that you can still access the flash after the flash has been reset in reset_session. Closes #5584 [lmarlow@yahoo.com]
......
...@@ -80,7 +80,7 @@ def possible_controllers ...@@ -80,7 +80,7 @@ def possible_controllers
unless @possible_controllers unless @possible_controllers
@possible_controllers = [] @possible_controllers = []
paths = $LOAD_PATH.select { |path| File.directory? path } paths = $LOAD_PATH.select { |path| File.directory?(path) && path != "." }
seen_paths = Hash.new {|h, k| h[k] = true; false} seen_paths = Hash.new {|h, k| h[k] = true; false}
normalize_paths(paths).each do |load_path| normalize_paths(paths).each do |load_path|
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册