From 75ea3f8298da5943c5b762dc4304b85769b391e1 Mon Sep 17 00:00:00 2001 From: Louise Crow Date: Wed, 18 Dec 2013 19:29:01 +0000 Subject: Allow from_admin_message to take a name and email. Previously it accepted a user, but for this usage we won't necessarily have one. --- lib/tasks/translation.rake | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'lib/tasks') diff --git a/lib/tasks/translation.rake b/lib/tasks/translation.rake index 6458d9268..b1f9d0b71 100644 --- a/lib/tasks/translation.rake +++ b/lib/tasks/translation.rake @@ -66,9 +66,10 @@ namespace :translation do 'Hello!') write_email(user_contact_email, 'Contact email (user to user)', output_file) - admin_contact_email = ContactMailer.from_admin_message(info_request.user, - 'A test message', - 'Hello!') + admin_contact_email = ContactMailer.from_admin_message(info_request.user.name, + info_request.user.email, + 'A test message', + 'Hello!') write_email(admin_contact_email, 'Contact email (admin to user)', output_file) # request mailer -- cgit v1.2.3