This repository has been archived on 2020-05-27. You can view files and clone it, but cannot push or open issues/pull-requests.
barleysodas/app/models/error_mailer.rb

14 lines
473 B
Ruby

class ErrorMailer < ActionMailer::Base
def snapshot(exception, trace, session, params, env)
@headers["Content-Type"] = "text/plain"
@recipients = 'penguincoder@gmail.com'
@from = 'BarleySodas <error@barleysodas.com>'
@subject = "[BarleySodas Exception: #{env['REQUEST_URI']}]"
@sent_on = Time.now
@body["exception"] = exception
@body["trace"] = trace
@body["session"] = session
@body["params"] = params
@body["env"] = env
end
end