diff options
author | Joshua Peek <josh@joshpeek.com> | 2009-12-10 23:45:04 -0600 |
---|---|---|
committer | Joshua Peek <josh@joshpeek.com> | 2009-12-10 23:45:04 -0600 |
commit | 2f90d700498294a9a4da0baa5317c0e6feaaf176 (patch) | |
tree | 7dd25f66023ae29027ebf24bd8c82f5db08d6140 /actionpack/lib/action_dispatch/routing | |
parent | d1191507bc8ffa4f7fe59b1cfb03dfbf6b73a798 (diff) | |
download | rails-2f90d700498294a9a4da0baa5317c0e6feaaf176.tar.gz rails-2f90d700498294a9a4da0baa5317c0e6feaaf176.tar.bz2 rails-2f90d700498294a9a4da0baa5317c0e6feaaf176.zip |
Kill RouteSet#recognize
Diffstat (limited to 'actionpack/lib/action_dispatch/routing')
-rw-r--r-- | actionpack/lib/action_dispatch/routing/route_set.rb | 12 |
1 files changed, 0 insertions, 12 deletions
diff --git a/actionpack/lib/action_dispatch/routing/route_set.rb b/actionpack/lib/action_dispatch/routing/route_set.rb index 664babd12e..8d56c4d087 100644 --- a/actionpack/lib/action_dispatch/routing/route_set.rb +++ b/actionpack/lib/action_dispatch/routing/route_set.rb @@ -479,12 +479,6 @@ module ActionDispatch end end - def recognize(request) - params = recognize_path(request.path, extract_request_environment(request)) - request.path_parameters = params.with_indifferent_access - "#{params[:controller].to_s.camelize}Controller".constantize - end - def recognize_path(path, environment = {}, rescue_error = true) method = (environment[:method] || "GET").to_s.upcase @@ -499,12 +493,6 @@ module ActionDispatch status, headers, body = call(env) body end - - # Subclasses and plugins may override this method to extract further attributes - # from the request, for use by route conditions and such. - def extract_request_environment(request) - { :method => request.method } - end end end end |