title: How to make Delayed_Job notify Airbrake when an ActionMailer runs into an error?
body: <p>The DelayedJob docs mention hooks, including an error hook, but only in the context of custom Job subclasses. </p>
  
  <p><a href="https://stackoverflow.com/questions/11766368/error-reporting-when-sending-emails-with-delayed-job">This similar question</a> (with no answers) says adding the same hook to the mailer class did not work. </p>
  
  <p>What's the trick? </p>
  
  <p><strong>Update:</strong> </p>
  
  <p>In general, I'd like to see how to add hooks to jobs that are triggered using the <code>object.delay.action()</code> syntax, where I don't see an obvious link to a <code>____Job</code> class.</p>