aboutsummaryrefslogtreecommitdiffstats
path: root/actionpack/lib/action_controller/dispatch
diff options
context:
space:
mode:
authorJoshua Peek <josh@joshpeek.com>2009-09-15 10:05:46 -0500
committerJoshua Peek <josh@joshpeek.com>2009-09-15 10:05:46 -0500
commit90d7ae23c6f5a7e914d8b9fd74481ac61b6c4fb9 (patch)
tree1b371ce044be6079102190a43bfae9f5e749d440 /actionpack/lib/action_controller/dispatch
parentd58ee2300854f4a5a4e0ff4b7e09f412eb2dc189 (diff)
downloadrails-90d7ae23c6f5a7e914d8b9fd74481ac61b6c4fb9.tar.gz
rails-90d7ae23c6f5a7e914d8b9fd74481ac61b6c4fb9.tar.bz2
rails-90d7ae23c6f5a7e914d8b9fd74481ac61b6c4fb9.zip
Remove global exception catching from ApplicationController.
It was severely broken since it was ported to NewBase and is causing problems with normal exception catching. A replacement is coming soon.
Diffstat (limited to 'actionpack/lib/action_controller/dispatch')
-rw-r--r--actionpack/lib/action_controller/dispatch/middlewares.rb10
1 files changed, 4 insertions, 6 deletions
diff --git a/actionpack/lib/action_controller/dispatch/middlewares.rb b/actionpack/lib/action_controller/dispatch/middlewares.rb
index b25ed3fd3f..5641b3cb8d 100644
--- a/actionpack/lib/action_controller/dispatch/middlewares.rb
+++ b/actionpack/lib/action_controller/dispatch/middlewares.rb
@@ -4,15 +4,13 @@ use "Rack::Lock", :if => lambda {
use "ActionDispatch::ShowExceptions", lambda { ActionController::Base.consider_all_requests_local }
use "ActionDispatch::Callbacks", lambda { ActionController::Dispatcher.prepare_each_request }
-use "ActionDispatch::Rescue", lambda {
- controller = (::ApplicationController rescue ActionController::Base)
- # TODO: Replace with controller.action(:_rescue_action)
- controller.method(:rescue_action)
-}
+
+# TODO: Redirect global exceptions somewhere?
+# use "ActionDispatch::Rescue"
use lambda { ActionController::Base.session_store },
lambda { ActionController::Base.session_options }
use "ActionDispatch::ParamsParser"
use "Rack::MethodOverride"
-use "Rack::Head" \ No newline at end of file
+use "Rack::Head"