Skip to content

Instantly share code, notes, and snippets.

@wireframe
Created May 22, 2012 17:14
Show Gist options
  • Save wireframe/2770350 to your computer and use it in GitHub Desktop.
Save wireframe/2770350 to your computer and use it in GitHub Desktop.
user = User.new
# execute instance method in background
user.backgrounded.do_stuff
# execute class method in background
User.backgrounded.do_something_else
# perform work on a custom queue
user.backgrounded(:queue => 'custom').do_something_else
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment