]> git.openstreetmap.org Git - rails.git/blobdiff - app/models/notifier.rb
UI changes + Redirection after creating report fixed
[rails.git] / app / models / notifier.rb
index 23f7b990781049948036d08842bcec877b0250ad..b3648aa5c618fea3c888255b1b0f73c5290d6e1b 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)
@@ -187,4 +198,5 @@ class Notifier < ActionMailer::Base
       EMAIL_FROM
     end
   end
+
 end