X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/8fe18995964717ff6f88858291c6f464cc40397f..d56b1400bc13432afe38a679a8b9028fff1e0453:/app/models/notifier.rb?ds=sidebyside diff --git a/app/models/notifier.rb b/app/models/notifier.rb index 23f7b9907..1b1da7b5e 100644 --- a/app/models/notifier.rb +++ b/app/models/notifier.rb @@ -172,6 +172,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 with_recipient_locale(recipient)