X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/945ff7911ca51dc250ffaba71f62821b5c0c0a95..f3519e97819cc5a5e2c2f9931c7d565b8e5227c8:/app/models/notifier.rb diff --git a/app/models/notifier.rb b/app/models/notifier.rb index 23f7b9907..b3648aa5c 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) @@ -187,4 +198,5 @@ class Notifier < ActionMailer::Base EMAIL_FROM end end + end