Let's see if this works

This commit is contained in:
riking
2014-06-22 15:04:24 -07:00
parent 94de396b99
commit edc17dddb3
3 changed files with 12 additions and 4 deletions

View File

@@ -3,11 +3,11 @@ require_dependency 'email/message_builder'
class RejectionMailer < ActionMailer::Base
include Email::BuildEmailHelper
def send_rejection(from, body)
build_email(from, template: 'email_error_notification', from: from, body: body)
def send_rejection(from, body, error)
build_email(from, template: 'email_error_notification', error: "#{error.message}\n\n#{error.backtrace.join("\n")}", source: body)
end
def send_trust_level(from, body, to)
build_email(from, template: 'email_reject_trust_level', to: to)
def send_trust_level(from, body)
build_email(from, template: 'email_reject_trust_level')
end
end