Created
November 25, 2012 19:24
-
-
Save International/4144868 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 SomeBackgroundOperation | |
def run | |
# code to run in the background goes here | |
end | |
end | |
# enqueing it to run | |
Rails.queue.push(SomeBackgroundOperation.new) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment