app/models/feedback.rb
def email_and_send
    AdminMailer.feedback(id).deliver
    if email.present?
      UserMailer.feedback(id).deliver
    end
    send_report
  end
# note -- this has NOTHING to do with the Comment class!
# This is just the name of the text field in the Feedback
# class which holds the user's comments.
- this has NOTHING to do with the Comment class.
This is just the name of the text field in the Feedback
class which holds the user's comments.
- this has NOTHING to do with the Comment class . This is just the name of the text field in the Feedback class which holds the user ' s comments .
def email_and_send
    AdminMailer.feedback(id).deliver
    if email.present?
      UserMailer.feedback(id).deliver
    end
    send_report
  end
def email_and_send AdminMailer . feedback ( id ) . deliver if email . present? UserMailer . feedback ( id ) . deliver end send_report end
note -- this has NOTHING to do with the Comment class!
note -- this has NOTHING to do with the Comment class!