igrigorik/em-synchrony — pull request #89 by jormon (2011-11-30 21:17:51+00:00)
Title: fix nil callback issues when EM is not running

when EM is not running, the call to aquery returns the actual SQL result
instead of a Deferable object that we then need to wrap in fibery magic.
so, check what we get back.. if it's a deferable, wrap it. if it's
anything else, just return that.

i think this helps address the issues in https://github.com/igrigorik/em-synchrony/issues/58

for me, the big litmus test is doing rails console and actually being able to load models etc.