module Ops class AlertMailer < ApplicationMailer def incident(incident) @incident = incident mail( to: ENV.fetch("OPS_ALERT_EMAIL"), subject: "[Match Live TV Ops] #{incident.severity.upcase}: #{incident.title}" ) end end end