]> git.openstreetmap.org Git - rails.git/blobdiff - app/models/notifier.rb
Whitespace fixes.
[rails.git] / app / models / notifier.rb
index 23f7b990781049948036d08842bcec877b0250ad..1b1da7b5eaacb1da4edfb2f4de544066fc0b5406 100644 (file)
@@ -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)