app/mailers/user_mailer.rb
# SUB REQUEST
# email the specified list or default list of eligible takers
SUB REQUEST
email the specified list or default list of eligible takers
SUB REQUEST email the specified list or default list of eligible takers
def sub_created_notify(user, sub)
    @sub = sub
    mail(to: "#{user.name} <#{user.email}>", from: sub.user.email,
      subject: "[Sub Request] Sub needed for " + sub.shift.short_display, date: Time.now)
  end
def sub_created_notify ( user , sub ) @sub = sub mail ( to : "#{user.name} <#{user.email}>" , from : sub . user . email , subject : "[Sub Request] Sub needed for " + sub . shift . short_display , date : Time . now ) end
SUB REQUEST
email the specified list or default list of eligible takers
SUB REQUEST email the specified list or default list of eligible takers
user
sub