]> git.openstreetmap.org Git - rails.git/blobdiff - app/models/notifier.rb
Added authorization + issues dashboard
[rails.git] / app / models / notifier.rb
index 23f7b990781049948036d08842bcec877b0250ad..13751560fbc7af6a12002b7b9ab4d26ab637a1a7 100644 (file)
@@ -172,6 +172,13 @@ class Notifier < ActionMailer::Base
     end
   end
 
     end
   end
 
+  def new_issue_notification(recipient)
+    with_recipient_locale recipient do
+      subject = I18n.t("notifier.new_issue_notification.subject")
+      mail :to => recipient.email, :subject => subject
+    end
+  end
+
   private
 
   def with_recipient_locale(recipient)
   private
 
   def with_recipient_locale(recipient)
@@ -187,4 +194,5 @@ class Notifier < ActionMailer::Base
       EMAIL_FROM
     end
   end
       EMAIL_FROM
     end
   end
+
 end
 end