app/mailers/user_mailer.rb
#email a group of users who want to see whenever a sub request is taken
email a group of users who want to see whenever a sub request is taken
email a group of users who want to see whenever a sub request is taken
def sub_taken_watch(user, owner, new_shift, email_start, email_end, dept, disp)
    @owner = owner
    @new_shift = new_shift
    @email_start = email_start
    @email_end = email_end
    mail(to: "#{user.name} <#{user.email}>", from: owner.email,
      subject: "Re: [Sub Request] Sub needed for " + disp, date: Time.now)
  end
def sub_taken_watch ( user , owner , new_shift , email_start , email_end , dept , disp ) @owner = owner @new_shift = new_shift @email_start = email_start @email_end = email_end mail ( to : "#{user.name} <#{user.email}>" , from : owner . email , subject : "Re: [Sub Request] Sub needed for " + disp , date : Time . now ) end
email a group of users who want to see whenever a sub request is taken
email a group of users who want to see whenever a sub request is taken
user
owner
new_shift
email_start
email_end
dept
disp