X-Git-Url: https://git.openstreetmap.org/rails.git/blobdiff_plain/b69e8b5c42b4bd184199757263ca05e1d7db43a9..980422533d315d623c0a880721e0f8a91c5ec19f:/app/models/notifier.rb diff --git a/app/models/notifier.rb b/app/models/notifier.rb index 8f9e3e295..54eb9b418 100644 --- a/app/models/notifier.rb +++ b/app/models/notifier.rb @@ -189,6 +189,17 @@ class Notifier < ActionMailer::Base end end + def new_issue_notification(issue_id, recipient) + with_recipient_locale recipient do + @url = url_for(:host => SERVER_URL, + :controller => "issues", + :action => "show", + :id => issue_id) + subject = I18n.t("notifier.new_issue_notification.subject") + mail :to => recipient.email, :subject => subject + end + end + private def set_shared_template_vars