Ticket #9573: actionpack.routing.possible_controllers.collect.diff
| File actionpack.routing.possible_controllers.collect.diff, 0.6 kB (added by pkcahier, 1 year ago) |
|---|
-
routing.rb
old new 301 301 302 302 seen_paths = Hash.new {|h, k| h[k] = true; false} 303 303 normalize_paths(paths).each do |load_path| 304 Dir["#{load_path}/**/*_controller.rb"]. collect do |path|304 Dir["#{load_path}/**/*_controller.rb"].sort.collect do |path| 305 305 next if seen_paths[path.gsub(%r{^\.[/\\]}, "")] 306 306 307 307 controller_name = path[(load_path.length + 1)..-1]