Last active
December 11, 2015 22:18
-
-
Save m1foley/4668532 to your computer and use it in GitHub Desktop.
Before/after of Resque#inline accepting block
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 characters
# Current: Resque#inline without block | |
begin | |
Resque.inline = true | |
Resque.enqueue 'Job' | |
ensure | |
Resque.inline = false | |
end | |
# New: Resque#inline with block | |
Resque.inline do | |
Resque.enqueue 'Job' | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment