diff options
author | Valery Sizov <vsv2711@gmail.com> | 2011-12-18 16:07:47 +0200 |
---|---|---|
committer | Valery Sizov <vsv2711@gmail.com> | 2011-12-18 16:07:47 +0200 |
commit | 32aa2e3f24c1b2d1d3f4fa8cfb6334644492ba2a (patch) | |
tree | c5bf65d70e211d94e943daa611ae631829a1524c /app/mailers | |
parent | df5b192e4d864cc8b27976bfc814a5e445ae8e1d (diff) | |
download | gitlab-ce-32aa2e3f24c1b2d1d3f4fa8cfb6334644492ba2a.tar.gz |
notification when assignee issue changed
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 cbc895465b0..02ea1101683 100644 --- a/app/mailers/notify.rb +++ b/app/mailers/notify.rb @@ -53,4 +53,12 @@ class Notify < ActionMailer::Base @project = merge_request.project mail(:to => @user.email, :subject => "gitlab | #{@merge_request.title} ") end + + def changed_issue_email(user, issue) + @user = user + @assignee_was ||= User.find(issue.assignee_id_was) + @issue = issue + @project = issue.project + mail(:to => @user.email, :subject => "gitlab | #{@issue.title} ") + end end |