Fix email code & tests

This commit is contained in:
riking
2014-06-27 12:03:07 -07:00
parent 0051cd8919
commit da9048f3ea
5 changed files with 28 additions and 43 deletions

View File

@@ -3,8 +3,8 @@ require_dependency 'email/message_builder'
class RejectionMailer < ActionMailer::Base
include Email::BuildEmailHelper
def send_rejection(from, body, template, error)
build_email(from, from: from, template: template, error: error, source: body)
def send_rejection(from, body, to_address, template)
build_email(from, template: "system_messages.#{template}", source: body, destination: to_address)
end
def send_trust_level(from, template)