diff options
author | Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com> | 2014-09-15 10:57:02 +0300 |
---|---|---|
committer | Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com> | 2014-09-15 10:57:02 +0300 |
commit | bdbadebe3e6e25180d8c1465dde4573fa0ecc389 (patch) | |
tree | 64530175e13127cbc68cc9d6c24adfb6c7e56912 /app/mailers/emails/projects.rb | |
parent | 1aa48174db63871bb10b53e49c86222a4d9b7c6d (diff) | |
download | gitlab-ce-bdbadebe3e6e25180d8c1465dde4573fa0ecc389.tar.gz |
Fix adminarea and emails for new membership logic
Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
Diffstat (limited to 'app/mailers/emails/projects.rb')
-rw-r--r-- | app/mailers/emails/projects.rb | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/app/mailers/emails/projects.rb b/app/mailers/emails/projects.rb index 152d5aa9959..d6edfd7059f 100644 --- a/app/mailers/emails/projects.rb +++ b/app/mailers/emails/projects.rb @@ -1,10 +1,10 @@ module Emails module Projects - def access_level_granted_email(user_project_id) - @users_project = ProjectMember.find user_project_id - @project = @users_project.project + def project_access_granted_email(user_project_id) + @project_member = ProjectMember.find user_project_id + @project = @project_member.project @target_url = project_url(@project) - mail(to: @users_project.user.email, + mail(to: @project_member.user.email, subject: subject("Access to project was granted")) end |