Skip to content

Instantly share code, notes, and snippets.

@KensoDev
Created May 22, 2012 13:16
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save KensoDev/2768981 to your computer and use it in GitHub Desktop.
Save KensoDev/2768981 to your computer and use it in GitHub Desktop.
class User < ActiveRecord::Base
def long_running_method
# Your code here
end
later :long_running_method
def long_running_method_2
# Your code here
end
later :long_running_method_2, queue: :some_queue_name
def lonely_long_running_method
# Your code here
end
later :lonely_long_running_method, :loner => true, queue: :some_queue_name
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment