Send update instructions after project namespace id changed or namespace path changed

This commit is contained in:
Dmitriy Zaporozhets 2012-12-20 22:16:51 +02:00
parent d188adfd97
commit 75dd704294
5 changed files with 47 additions and 2 deletions

View file

@ -102,6 +102,12 @@ class Notify < ActionMailer::Base
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,
subject: subject("project was moved"))
end
#
# User