lfzawacki/musical-artifacts

View on GitHub
app/mailers/artifact_mailer.rb

Summary

Maintainability
A
0 mins
Test Coverage
A
100%
class ArtifactMailer < ApplicationMailer

  def new_artifact(user, artifact)
    @artifact = artifact
    Rails.logger.info "[ArtifactMailer] sending mail to #{user.email}"
    mail(to: user.email, subject: 'New artifact created')
  end

end