Controllers + a few tests + new notification added. Work pending on the notification view

This commit is contained in:
Shrey 2015-05-20 20:29:20 +05:30 committed by Matt Amos
parent 5add3cf671
commit 453f758f91
14 changed files with 201 additions and 0 deletions

View file

@ -172,6 +172,13 @@ class Notifier < ActionMailer::Base
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)
@ -187,4 +194,5 @@ class Notifier < ActionMailer::Base
EMAIL_FROM
end
end
end