summaryrefslogtreecommitdiff
path: root/app/mailers
diff options
context:
space:
mode:
authorAlex Denisov <1101.debian@gmail.com>2012-08-27 00:13:03 +0300
committerAlex Denisov <1101.debian@gmail.com>2012-08-27 00:13:03 +0300
commitaaeb37419ac00ed065f1c88f617db5788ada8525 (patch)
tree9ed94522c1418bf58662aa56439ca9693a53c446 /app/mailers
parent2c32574ac303e180f43cfc2a3d119dd6a7b29b0c (diff)
downloadgitlab-ce-aaeb37419ac00ed065f1c88f617db5788ada8525.tar.gz
Send notifiation on create UserProject relation (access granted)
Diffstat (limited to 'app/mailers')
-rw-r--r--app/mailers/notify.rb7
1 files changed, 7 insertions, 0 deletions
diff --git a/app/mailers/notify.rb b/app/mailers/notify.rb
index d0571b7b2c2..1d222eb1a53 100644
--- a/app/mailers/notify.rb
+++ b/app/mailers/notify.rb
@@ -76,6 +76,13 @@ class Notify < ActionMailer::Base
mail(to: recipient(recipient_id), subject: subject("changed issue ##{@issue.id}", @issue.title))
end
+ def project_access_granted_email(user_project_id)
+ @users_project = UsersProject.find user_project_id
+ @project = @users_project.project
+ mail(to: @users_project.user.email,
+ subject: subject("access to project was granted"))
+ end
+
private
# Look up a User by their ID and return their email address