diff options
author | Nicholas Seckar <nseckar@gmail.com> | 2005-07-07 21:20:59 +0000 |
---|---|---|
committer | Nicholas Seckar <nseckar@gmail.com> | 2005-07-07 21:20:59 +0000 |
commit | 3c4295c4e05fe5f98b82b7a4a2c4cddc96a740a6 (patch) | |
tree | 19d2ff2372a15ba4311bfe7c6caffe06ed055254 | |
parent | f4bfacb24fbe17c1010a46c2b2d7a15d44cf1918 (diff) | |
download | rails-3c4295c4e05fe5f98b82b7a4a2c4cddc96a740a6.tar.gz rails-3c4295c4e05fe5f98b82b7a4a2c4cddc96a740a6.tar.bz2 rails-3c4295c4e05fe5f98b82b7a4a2c4cddc96a740a6.zip |
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
-rw-r--r-- | actionpack/lib/action_controller/routing.rb | 2 |
1 files changed, 1 insertions, 1 deletions
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 |