allisonlarson/rmmts

View on GitHub
app/mailers/payment_mailer.rb

Summary

Maintainability
A
0 mins
Test Coverage
class PaymentMailer < ActionMailer::Base
  default from: 'notifications@rmmts.com'

  def payment_notification_email(payment)
    @user = payment.payer
    @payee = payment.payee
    mail(to: @user.email, subject: "#{@payee.name || @payee.email} has requested a payment")
  end
end