Sha256: d29367b1d74ddb2f8f96d1786d1bd395a092b78990bb467b9574d87743496b33

Contents?: true

Size: 498 Bytes

Versions: 6

Compression:

Stored size: 498 Bytes

Contents

class Whoops::NotificationMailer < ActionMailer::Base
  def event_notification(event_group, addresses)
    @event_group = event_group
    @addresses = addresses
    mail(
      :to      => addresses.join(", "),
      :from    => Rails.application.config.whoops_sender,
      :subject => "Whoops Notification | #{event_group.service}: #{event_group.environment}: #{event_group.message}",
      :body    => "#{event_group.service}: #{event_group.environment}: #{event_group.message}"
    )
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
whoops-0.3.5 app/mailers/whoops/notification_mailer.rb
whoops-0.3.4 app/mailers/whoops/notification_mailer.rb
whoops-0.3.3 app/mailers/whoops/notification_mailer.rb
whoops-0.3.2 app/mailers/whoops/notification_mailer.rb
whoops-0.3.1 app/mailers/whoops/notification_mailer.rb
whoops-0.3 app/mailers/whoops/notification_mailer.rb