class TimeslotMailer < ApplicationMailer

  def tutor_scheduled(timeslot)
    @timeslot = timeslot
    mail to: @timeslot.tutor.email, subject: "Mentor Me Scheduling Notification"
  end

  def student_scheduled(timeslot)
    @timeslot = timeslot
    mail to: @timeslot.student.email, subject: "Mentor Me Scheduling Notification"
  end
end

class TimeslotMailer < ApplicationMailer

  def tutor_scheduled(timeslot)
    @timeslot = timeslot
    mail to: @timeslot.tutor.email, subject: "Mentor Me Scheduling Notification"
  end

  def student_scheduled(timeslot)
    @timeslot = timeslot
    mail to: @timeslot.student.email, subject: "Mentor Me Scheduling Notification"
  end

  def tutor_cancel(timeslot, student)
    @timeslot = timeslot
    @student = student
    mail to: @timeslot.tutor.email, subject: "Mentor Me Cancellation Notification"
  end

  def student_cancel(timeslot, student)
    @timeslot = timeslot
    @student = student
    mail to: @student.email, subject: "Mentor Me Cancellation Notification"
  end
end

Add timeslot mailer methods for cancellations
Add timeslot mailer methods for cancellations

Add methods to timeslot mailer to issue emails to the affected student
and tutor when a session is canceled by either of them.
