Skip to content

Instantly share code, notes, and snippets.

@marsz
Created December 14, 2011 13:36
Show Gist options
  • Save marsz/1476590 to your computer and use it in GitHub Desktop.
Save marsz/1476590 to your computer and use it in GitHub Desktop.
class User
@queue = "update_status"
def self.perform(user_id,status)
User.find(user_id).update_attributes(:status=>status)
end
end
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