Created
May 22, 2012 13:16
-
-
Save KensoDev/2768981 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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