orbit-4-2/app/jobs/send_ask_reply_mail.rb

10 lines
183 B
Ruby

class SendAskReplyMail
@queue = :mail
def self.perform(ask_question_id)
ask_question = AskQuestion.find(ask_question_id)
AskMailer.reply(ask_question).deliver
end
end