57ad81a9c5
There was some funny syntax in merge request email templates. There was a ! before the merge request number when there probably should be a #. This may be some carry over from markdown but should not be in email templates. There were also some capitalization discrepancies among the subject lines. For those OCD people out there I standardized the capitalization. :)
17 lines
518 B
Ruby
17 lines
518 B
Ruby
module Emails
|
|
module Projects
|
|
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
|
|
|
|
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
|
|
end
|