Skip to content

Instantly share code, notes, and snippets.

@ngw
Created March 14, 2011 13:24
Show Gist options
  • Save ngw/869100 to your computer and use it in GitHub Desktop.
Save ngw/869100 to your computer and use it in GitHub Desktop.
ruby-1.9.2-p180 :001 > Resque.enqueue( PortfolioGenerator, 'test' )
=> [{:klass=>PortfolioGenerator, :args=>["test"]}]
ruby-1.9.2-p180 :002 > Resque::Job.create Resque.queue_from_class( PortfolioGenerator ), PortfolioGenerator, 'test'
=> 1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment