mirror of
https://github.com/github/rails.git
synced 2026-01-30 00:38:00 -05:00
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:
@@ -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}
|
||||
|
||||
Reference in New Issue
Block a user