Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- if media.type == 'Song'
- Resque.enqueue(EncodeSong, pending_media.id, pending_media.unencoded_url)
- elsif media.type == 'Video'
- Resque.enqueue(EncodeVideo, pending_media.id, pending_media.unencoded_url)
- elsif media.type == 'Photo'
- Resque.enqueue(EncodePhoto, pending_media.id, pending_media.unencoded_url)
- end
Add Comment
Please, Sign In to add comment