X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/453f758f91d57688663e354a54061a65945410e7..9046b5ba8d07cd8907685ab8da7f73829cb692c5:/app/models/notifier.rb diff --git a/app/models/notifier.rb b/app/models/notifier.rb index 13751560f..1b1da7b5e 100644 --- a/app/models/notifier.rb +++ b/app/models/notifier.rb @@ -172,8 +172,12 @@ class Notifier < ActionMailer::Base end end - def new_issue_notification(recipient) + 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 @@ -194,5 +198,4 @@ class Notifier < ActionMailer::Base EMAIL_FROM end end - end