diff options
author | Valery Sizov <vsv2711@gmail.com> | 2015-09-29 16:37:50 +0300 |
---|---|---|
committer | Valery Sizov <vsv2711@gmail.com> | 2015-10-01 09:54:56 +0300 |
commit | 5b573130515913dd29216c642334200b1b973245 (patch) | |
tree | ecb0531ba596e0d28f1eb5f099073f45e6dd33ee /app/mailers/emails | |
parent | 2714d5b8147cef39343a1c35ba099ebe6445f5e4 (diff) |
Note the original location of a moved project when notifying users of the move
Diffstat (limited to 'app/mailers/emails')
-rw-r--r-- | app/mailers/emails/projects.rb | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/app/mailers/emails/projects.rb b/app/mailers/emails/projects.rb index 4a6e18e6a74..caba63006da 100644 --- a/app/mailers/emails/projects.rb +++ b/app/mailers/emails/projects.rb @@ -50,10 +50,11 @@ module Emails subject: subject("Invitation declined")) end - def project_was_moved_email(project_id, user_id) + def project_was_moved_email(project_id, user_id, old_path_with_namespace) @current_user = @user = User.find user_id @project = Project.find project_id @target_url = namespace_project_url(@project.namespace, @project) + @old_path_with_namespace = old_path_with_namespace mail(to: @user.notification_email, subject: subject("Project was moved")) end |