Skip to content

Instantly share code, notes, and snippets.

View ephekt's full-sized avatar

Mike R ephekt

  • maker of things
  • California
View GitHub Profile
@ephekt
ephekt / gist:1726144
Created February 2, 2012 22:15
exception handling
Model:
class ExceptionMailer < ActionMailer::Base
def exception_notification(ex, request, sent_at = Time.now)
subject "Answerwise Exception: #{ex.class} - #{ex.message}"
recipients 'mfrosengarten@gmail.com'
from 'mfrosengarten@gmail.com'
sent_on sent_at