aboutsummaryrefslogtreecommitdiffstats
path: root/lib/tasks
diff options
context:
space:
mode:
authorLouise Crow <louise.crow@gmail.com>2013-12-18 19:29:01 +0000
committerLouise Crow <louise.crow@gmail.com>2014-01-13 12:36:42 +0000
commit75ea3f8298da5943c5b762dc4304b85769b391e1 (patch)
tree9fe7665d537857b897d116df2fb2ee89cec65500 /lib/tasks
parent18181d149130490cacd2bd4e558b94e9647137f1 (diff)
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.
Diffstat (limited to 'lib/tasks')
-rw-r--r--lib/tasks/translation.rake7
1 files changed, 4 insertions, 3 deletions
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