Created
December 14, 2011 13:36
-
-
Save marsz/1476590 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 | |
@queue = "update_status" | |
def self.perform(user_id,status) | |
User.find(user_id).update_attributes(:status=>status) | |
end | |
end |
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
user = User.first | |
Resque.enqueue(User, user.id, 1) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment