diff options
Diffstat (limited to 'app/mailers/emails/projects.rb')
-rw-r--r-- | app/mailers/emails/projects.rb | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/app/mailers/emails/projects.rb b/app/mailers/emails/projects.rb index efc6ce163c0..ed3fa28b15f 100644 --- a/app/mailers/emails/projects.rb +++ b/app/mailers/emails/projects.rb @@ -75,11 +75,9 @@ module Emails subject_text = "Action required: Project #{project.name} is scheduled to be deleted on " \ "#{deletion_date} due to inactivity" - mail(to: user.notification_email_for(project.group), - subject: subject(subject_text)) do |format| - format.html { render layout: 'mailer' } - format.text { render layout: 'mailer' } - end + email_with_layout( + to: user.notification_email_for(project.group), + subject: subject(subject_text)) end private |