From 3c4295c4e05fe5f98b82b7a4a2c4cddc96a740a6 Mon Sep 17 00:00:00 2001 From: Nicholas Seckar Date: Thu, 7 Jul 2005 21:20:59 +0000 Subject: Allow RouteSet#recognition_failed to be used to handle unknown URL forwarding git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@1766 5ecf4fe2-1ee6-0310-87b1-e25e094e27de --- actionpack/lib/action_controller/routing.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'actionpack') diff --git a/actionpack/lib/action_controller/routing.rb b/actionpack/lib/action_controller/routing.rb index 1a50eb488d..41f61bdb0d 100644 --- a/actionpack/lib/action_controller/routing.rb +++ b/actionpack/lib/action_controller/routing.rb @@ -427,7 +427,7 @@ module ActionController path.shift hash = recognize_path(path) - recognition_failed(request) unless hash && hash['controller'] + return recognition_failed(request) unless hash && hash['controller'] controller = hash['controller'] hash['controller'] = controller.controller_path -- cgit v1.2.3