Sha256: e0f4bfbc39028cec41f4db4e61c91325a45edafc87183a6c92bd8c5a1de92c8d
Contents?: true
Size: 675 Bytes
Versions: 3
Compression:
Stored size: 675 Bytes
Contents
module Blazer class CheckMailer < ActionMailer::Base include ActionView::Helpers::TextHelper default from: Blazer.from_email if Blazer.from_email def state_change(check, state, state_was, rows_count, error) @check = check @state = state @state_was = state_was @rows_count = rows_count @error = error mail to: check.emails, reply_to: check.emails, subject: "Check #{state.titleize}: #{check.query.name}" end def failing_checks(email, checks) @checks = checks # add reply_to for mailing lists mail to: email, reply_to: email, subject: "#{pluralize(checks.size, "Check")} Failing" end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
blazer-1.7.2 | app/mailers/blazer/check_mailer.rb |
blazer-1.7.1 | app/mailers/blazer/check_mailer.rb |
blazer-1.7.0 | app/mailers/blazer/check_mailer.rb |