Skip to content

Instantly share code, notes, and snippets.

@m1foley
Last active December 11, 2015 22:18
Show Gist options
  • Save m1foley/4668532 to your computer and use it in GitHub Desktop.
Save m1foley/4668532 to your computer and use it in GitHub Desktop.
Before/after of Resque#inline accepting block
# 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