Orbit/app/jobs/send_ask_notice_mail.rb

11 lines
254 B
Ruby
Raw Permalink Normal View History

class SendAskNoticeMail
@queue = :mail
def self.perform(ask_admin_id, ask_question_id)
ask_admin = AskAdmin.find(ask_admin_id)
ask_question = AskQuestion.find(ask_question_id)
AskMailer.notice(ask_admin, ask_question).deliver
end
end