diff options
author | Alex Denisov <1101.debian@gmail.com> | 2012-08-29 10:49:39 +0400 |
---|---|---|
committer | Alex Denisov <1101.debian@gmail.com> | 2012-08-29 10:49:39 +0400 |
commit | 4d65532158fb826b51290e0bbc30f34a1ec21d49 (patch) | |
tree | 5f7762c0011829e76a323616fb03a8999e432e64 /app/mailers | |
parent | 8da05a4ff7cd9cd84e74bd8a017baf59135ee39d (diff) |
Issue_status_changed email added
Diffstat (limited to 'app/mailers')
-rw-r--r-- | app/mailers/notify.rb | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/app/mailers/notify.rb b/app/mailers/notify.rb index 1d222eb1a53..91136fee95e 100644 --- a/app/mailers/notify.rb +++ b/app/mailers/notify.rb @@ -83,6 +83,14 @@ class Notify < ActionMailer::Base subject: subject("access to project was granted")) end + def issue_status_changed_email(recipient_id, issue_id, status, updated_by_user_id) + @issue = Issue.find issue_id + @issue_status = status + @updated_by = User.find updated_by_user_id + mail(to: recipient(recipient_id), + subject: subject("changed issue ##{@issue.id}", @issue.title)) + end + private # Look up a User by their ID and return their email address |