diff options
author | Joshua Peek <josh@joshpeek.com> | 2009-05-17 13:39:44 -0500 |
---|---|---|
committer | Joshua Peek <josh@joshpeek.com> | 2009-05-17 13:39:55 -0500 |
commit | 092089015b79752c5e9d664b3eeefef9e2223e36 (patch) | |
tree | 69887f3ae3dbc479cb4f2571930f0a46024bbb46 /actionpack/lib/action_controller/dispatch/middlewares.rb | |
parent | edc9c226d11e6104d191ceeb6416c7062ceda54a (diff) | |
download | rails-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.rb | 1 |
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) |