Last active
August 29, 2015 14:06
-
-
Save prehnRA/a2ee33e604032b93e7a5 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 CheckSlowPokeJob < ActiveJob::Base | |
def perform(slowpoke) # The slowpoke to check | |
slowpoke.check() | |
end | |
end | |
slowpoke = SlowPoke.find(1) | |
# Queues up a job to check slowpoke #1 later | |
CheckSlowPokeJob.perform_later(slowpoke) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment