Sha256: 73c9c70ea2eaca03d69c9442c35e44b0333544e07ecc474082e89876d06e9a79

Contents?: true

Size: 595 Bytes

Versions: 16

Compression:

Stored size: 595 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, subject: "Check #{state.titleize}: #{check.query.name}"
    end

    def failing_checks(email, checks)
      @checks = checks
      mail to: email, subject: "#{pluralize(checks.size, "Check")} Failing"
    end
  end
end

Version data entries

16 entries across 16 versions & 1 rubygems

Version Path
blazer-1.4.0 app/mailers/blazer/check_mailer.rb
blazer-1.3.5 app/mailers/blazer/check_mailer.rb
blazer-1.3.4 app/mailers/blazer/check_mailer.rb
blazer-1.3.3 app/mailers/blazer/check_mailer.rb
blazer-1.3.2 app/mailers/blazer/check_mailer.rb
blazer-1.3.1 app/mailers/blazer/check_mailer.rb
blazer-1.3.0 app/mailers/blazer/check_mailer.rb
blazer-1.2.1 app/mailers/blazer/check_mailer.rb
blazer-1.2.0 app/mailers/blazer/check_mailer.rb
blazer-1.1.1 app/mailers/blazer/check_mailer.rb
blazer-1.1.0 app/mailers/blazer/check_mailer.rb
blazer-1.0.4 app/mailers/blazer/check_mailer.rb
blazer-1.0.3 app/mailers/blazer/check_mailer.rb
blazer-1.0.2 app/mailers/blazer/check_mailer.rb
blazer-1.0.1 app/mailers/blazer/check_mailer.rb
blazer-1.0.0 app/mailers/blazer/check_mailer.rb