diff options
author | Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com> | 2013-06-22 11:56:51 +0400 |
---|---|---|
committer | Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com> | 2013-06-22 11:56:51 +0400 |
commit | 1dd6606161bea762cefe14c7a39f79a8c0b43dd7 (patch) | |
tree | c65cff6ccfb5c3ed78547769bc7eb5e88c141b74 /app/mailers | |
parent | dc0f08f8d807c363e082f9ada7a1addeefdb554d (diff) |
Send project transfer email to all members. Added specs for project move email
Diffstat (limited to 'app/mailers')
-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 dcd894bb8ef..1ad7ca588bd 100644 --- a/app/mailers/emails/projects.rb +++ b/app/mailers/emails/projects.rb @@ -8,10 +8,10 @@ module Emails end - def project_was_moved_email(user_project_id) - @users_project = UsersProject.find user_project_id - @project = @users_project.project - mail(to: @users_project.user.email, + def project_was_moved_email(project_id, user_id) + @user = User.find user_id + @project = Project.find project_id + mail(to: @user.email, subject: subject("project was moved")) end end |