app/mailers/rd_mailer.rb
# send an email about an error/exception that occurred
send an email about an error/exception that occurred
send an email about an error / exception that occurred
def notify_admin_about_error(error_message)
    @error_message = error_message
    to = ENV["ERROR_EMAIL_TO"]
    mail(to: to, subject: "Error in RDYork application") unless to.nil? or to.empty?
  end
def notify_admin_about_error ( error_message ) @error_message = error_message to = ENV [ "ERROR_EMAIL_TO" ] mail ( to : to , subject : "Error in RDYork application" ) unless to . nil? or to . empty? end
send an email about an error/exception that occurred
send an email about an error / exception that occurred
# get the admin email address # send email
error_message
<not_specific>