I’m using delayed_job gem.
I want to call a method using a callback as follows
after_update :get_score
How can I use delay_job for this so that the get_score method is run in the background?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
I’m not too familiar with
delayed_job, but judging from its docs, this should work.