From 5ced4023931e2749aea1c64a4491bbd9efa5a524 Mon Sep 17 00:00:00 2001 From: Jamis Buck Date: Mon, 5 Jun 2006 16:01:50 +0000 Subject: Remove dependency on Pathname in new routes git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@4439 5ecf4fe2-1ee6-0310-87b1-e25e094e27de --- actionpack/lib/action_controller/routing.rb | 2 -- 1 file changed, 2 deletions(-) (limited to 'actionpack/lib/action_controller') diff --git a/actionpack/lib/action_controller/routing.rb b/actionpack/lib/action_controller/routing.rb index 3590513325..2c67df254f 100644 --- a/actionpack/lib/action_controller/routing.rb +++ b/actionpack/lib/action_controller/routing.rb @@ -1,5 +1,4 @@ require 'cgi' -require 'pathname' class Object def to_param @@ -64,7 +63,6 @@ module ActionController @possible_controllers = [] paths = $LOAD_PATH.select { |path| File.directory? path } - paths.collect! { |path| Pathname.new(path).realpath.to_s } paths = paths.sort_by { |path| - path.length } seen_paths = Hash.new {|h, k| h[k] = true; false} -- cgit v1.2.3