aboutsummaryrefslogtreecommitdiffstats
path: root/actionpack/lib/action_controller/dispatcher.rb
diff options
context:
space:
mode:
authorPratik Naik <pratiknaik@gmail.com>2008-08-03 13:54:44 +0100
committerPratik Naik <pratiknaik@gmail.com>2008-08-03 13:54:44 +0100
commitf6124c2b09aed7b5951d0ac83438459c49757a36 (patch)
tree37ced4d11eafdb81f5173ae8b08e6124d3fee03c /actionpack/lib/action_controller/dispatcher.rb
parentacd0456fcf251d1e50cbf08311341dfd370dc1aa (diff)
parentcb21db1a334e6ca2695d4e7183b1bdce204b9eb3 (diff)
downloadrails-f6124c2b09aed7b5951d0ac83438459c49757a36.tar.gz
rails-f6124c2b09aed7b5951d0ac83438459c49757a36.tar.bz2
rails-f6124c2b09aed7b5951d0ac83438459c49757a36.zip
Merge commit 'mainstream/master'
Diffstat (limited to 'actionpack/lib/action_controller/dispatcher.rb')
-rw-r--r--actionpack/lib/action_controller/dispatcher.rb18
1 files changed, 7 insertions, 11 deletions
diff --git a/actionpack/lib/action_controller/dispatcher.rb b/actionpack/lib/action_controller/dispatcher.rb
index 7df987d525..835d8e834e 100644
--- a/actionpack/lib/action_controller/dispatcher.rb
+++ b/actionpack/lib/action_controller/dispatcher.rb
@@ -2,8 +2,6 @@ module ActionController
# Dispatches requests to the appropriate controller and takes care of
# reloading the app after each request when Dependencies.load? is true.
class Dispatcher
- @@guard = Mutex.new
-
class << self
def define_dispatcher_callbacks(cache_classes)
unless cache_classes
@@ -101,15 +99,13 @@ module ActionController
end
def dispatch
- @@guard.synchronize do
- begin
- run_callbacks :before_dispatch
- handle_request
- rescue Exception => exception
- failsafe_rescue exception
- ensure
- run_callbacks :after_dispatch, :enumerator => :reverse_each
- end
+ begin
+ run_callbacks :before_dispatch
+ handle_request
+ rescue Exception => exception
+ failsafe_rescue exception
+ ensure
+ run_callbacks :after_dispatch, :enumerator => :reverse_each
end
end