Skip to content

Instantly share code, notes, and snippets.

@wycats
Created August 20, 2008 05:14
Show Gist options
  • Save wycats/6321 to your computer and use it in GitHub Desktop.
Save wycats/6321 to your computer and use it in GitHub Desktop.
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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment