Skip to content

Instantly share code, notes, and snippets.

@wycats
Created August 20, 2008 05:14
Show Gist options
  • Select an option

  • Save wycats/6321 to your computer and use it in GitHub Desktop.

Select an option

Save wycats/6321 to your computer and use it in GitHub Desktop.

Revisions

  1. wycats created this gist Aug 20, 2008.
    10 changes: 10 additions & 0 deletions heckle.diff
    Original 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