aboutsummaryrefslogtreecommitdiffstats
path: root/actionpack/lib/action_controller/dispatch/middlewares.rb
diff options
context:
space:
mode:
authorJoshua Peek <josh@joshpeek.com>2009-05-17 13:39:44 -0500
committerJoshua Peek <josh@joshpeek.com>2009-05-17 13:39:55 -0500
commit092089015b79752c5e9d664b3eeefef9e2223e36 (patch)
tree69887f3ae3dbc479cb4f2571930f0a46024bbb46 /actionpack/lib/action_controller/dispatch/middlewares.rb
parentedc9c226d11e6104d191ceeb6416c7062ceda54a (diff)
downloadrails-092089015b79752c5e9d664b3eeefef9e2223e36.tar.gz
rails-092089015b79752c5e9d664b3eeefef9e2223e36.tar.bz2
rails-092089015b79752c5e9d664b3eeefef9e2223e36.zip
Extract generic callbacks middleware from dispatcher
Diffstat (limited to 'actionpack/lib/action_controller/dispatch/middlewares.rb')
-rw-r--r--actionpack/lib/action_controller/dispatch/middlewares.rb1
1 files changed, 1 insertions, 0 deletions
diff --git a/actionpack/lib/action_controller/dispatch/middlewares.rb b/actionpack/lib/action_controller/dispatch/middlewares.rb
index e4e3a704c0..b25ed3fd3f 100644
--- a/actionpack/lib/action_controller/dispatch/middlewares.rb
+++ b/actionpack/lib/action_controller/dispatch/middlewares.rb
@@ -3,6 +3,7 @@ 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)