virajmahesh/icsi-shift-scheduler

View on GitHub
app/mailers/matching_shift_mailer.rb

Summary

Maintainability
A
0 mins
Test Coverage
class MatchingShiftMailer < NotificationMailer

  def notify_user user, shift
    super
    @event = shift.event
    @subject = 'Your skills are needed!'

    mail to: user.email, subject: @subject, template_name: :matching_shift_mailer
  end
end