Class: Emailer

Inherits:
ActionMailer::Base
  • Object
show all
Defined in:
app/mailers/emailer.rb

Instance Method Summary (collapse)

Instance Method Details

- (Object) state_change(opts)



2
3
4
5
6
# File 'app/mailers/emailer.rb', line 2

def state_change(opts)
  @job = opts[:job]
  mail(:to => opts[:to], 
       :subject => "Codem Notification: Job #{@job.id} has entered #{opts[:state]}")
end