madebyhiro/codem-schedule

View on GitHub
app/mailers/emailer.rb

Summary

Maintainability
A
0 mins
Test Coverage
class Emailer < ActionMailer::Base
  def state_change(opts)
    @job = opts[:job]
    mail(to: opts[:to],
         subject: "Codem Notification: Job #{@job.id} has entered #{opts[:state]}")
  end
end