X-Git-Url: https://git.openstreetmap.org/rails.git/blobdiff_plain/ca5de5b4e01297b07ce3a9db45e908f15f7cda11..cf639202b802be9ce1a6f3f65e7d4f6292a2ad3a:/app/models/notifier.rb diff --git a/app/models/notifier.rb b/app/models/notifier.rb index 23f7b9907..13751560f 100644 --- a/app/models/notifier.rb +++ b/app/models/notifier.rb @@ -172,6 +172,13 @@ class Notifier < ActionMailer::Base end end + def new_issue_notification(recipient) + with_recipient_locale recipient do + subject = I18n.t("notifier.new_issue_notification.subject") + mail :to => recipient.email, :subject => subject + end + end + private def with_recipient_locale(recipient) @@ -187,4 +194,5 @@ class Notifier < ActionMailer::Base EMAIL_FROM end end + end