Module: Emails::RemoteMirrors

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

Instance Method Summary collapse

Instance Method Details

#remote_mirror_update_failed_email(remote_mirror_id, recipient_id) ⇒ Object


5
6
7
8
9
10
11
# File 'app/mailers/emails/remote_mirrors.rb', line 5

def remote_mirror_update_failed_email(remote_mirror_id, recipient_id)
  @remote_mirror = RemoteMirror.find_by_id(remote_mirror_id)
  @project = @remote_mirror.project
  user = User.find(recipient_id)

  mail(to: user.notification_email_for(@project.group), subject: subject('Remote mirror update failed'))
end