diff options
author | Jamis Buck <jamis@37signals.com> | 2006-06-05 16:01:50 +0000 |
---|---|---|
committer | Jamis Buck <jamis@37signals.com> | 2006-06-05 16:01:50 +0000 |
commit | 5ced4023931e2749aea1c64a4491bbd9efa5a524 (patch) | |
tree | a7c5f8775f070d0c4802e95b6540f26ce0f8d709 | |
parent | 6c04eb2115cd65d480f1d7c95cbc86a5d39a41ca (diff) | |
download | rails-5ced4023931e2749aea1c64a4491bbd9efa5a524.tar.gz rails-5ced4023931e2749aea1c64a4491bbd9efa5a524.tar.bz2 rails-5ced4023931e2749aea1c64a4491bbd9efa5a524.zip |
Remove dependency on Pathname in new routes
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@4439 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
-rw-r--r-- | actionpack/lib/action_controller/routing.rb | 2 |
1 files changed, 0 insertions, 2 deletions
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} |