Ruby on Rails | Screencasts | Download | Documentation | Weblog | Community | Source

Changeset 4625

Show
Ignore:
Timestamp:
07/27/06 15:31:07 (2 years ago)
Author:
minam
Message:

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

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/actionpack/CHANGELOG

    r4624 r4625  
    11*SVN* 
     2 
     3* Don't search a load-path of '.' for controller files [Jamis Buck] 
    24 
    35* Update integration.rb to require test_process explicitly instead of via Dependencies. [Nicholas Seckar] 
  • trunk/actionpack/lib/action_controller/routing.rb

    r4611 r4625  
    8181          @possible_controllers = [] 
    8282         
    83           paths = $LOAD_PATH.select { |path| File.directory? path
     83          paths = $LOAD_PATH.select { |path| File.directory?(path) && path != "."
    8484 
    8585          seen_paths = Hash.new {|h, k| h[k] = true; false}