Remove dependency on Pathname in new routes

git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@4439 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
This commit is contained in:
Jamis Buck
2006-06-05 16:01:50 +00:00
parent 6c04eb2115
commit 5ced402393

View File

@@ -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}