Skip to content

Instantly share code, notes, and snippets.

@npj
Created May 20, 2012 12:21
Show Gist options
  • Save npj/2757896 to your computer and use it in GitHub Desktop.
Save npj/2757896 to your computer and use it in GitHub Desktop.
def enqueue(object, method, *args)
meta = { 'class' => object.class.name, 'method' => method, 'id' => object.id }
Resque.enqueue(self, meta, args)
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment