Module: Emails::AutoDevops

Included in:
Notify
Defined in:
app/mailers/emails/auto_devops.rb

Instance Method Summary collapse

Instance Method Details

#autodevops_disabled_email(pipeline, recipient) ⇒ Object


5
6
7
8
9
10
11
12
13
14
15
16
# File 'app/mailers/emails/auto_devops.rb', line 5

def autodevops_disabled_email(pipeline, recipient)
  @pipeline = pipeline
  @project = pipeline.project

  add_project_headers

  mail(to: recipient,
       subject: auto_devops_disabled_subject(@project.name)) do |format|
    format.html { render layout: 'mailer' }
    format.text { render layout: 'mailer' }
  end
end