tasafo/tasafo_jobs

View on GitHub
app/mailers/job_mailer.rb

Summary

Maintainability
A
0 mins
Test Coverage
A
100%
class JobMailer < ApplicationMailer
  def new_job(job_id, recipient_id)
    @job = Job.find(job_id)
    recipient = User.find(recipient_id)

    mail(to: recipient.email, subject: I18n.t('jobs.email.new_job_subject'))
  end
end