Created
August 20, 2008 05:14
-
-
Save wycats/6321 to your computer and use it in GitHub Desktop.
Revisions
-
wycats created this gist
Aug 20, 2008 .There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,10 @@ def dispatch_action(klass, action, status = 200) controller = klass.new(self, status) - if Dispatcher.use_mutex then + if nil then @@mutex.synchronize { controller._dispatch(action) } else controller._dispatch(action) end controller end