Module: Emails::Reviews
- Included in:
- Notify
- Defined in:
- app/mailers/emails/reviews.rb
Instance Method Summary collapse
Instance Method Details
#new_review_email(recipient_id, review_id) ⇒ Object
5 6 7 8 9 10 11 12 13 14 15 16 17 |
# File 'app/mailers/emails/reviews.rb', line 5 def new_review_email(recipient_id, review_id) setup_review_email(review_id, recipient_id) # NOTE: We must not send any internal notes to users who are not supposed to be able to see it. # Also, we don't want to send an empty email the review only contains internal notes. unless @recipient.can?(:read_internal_note, @project) @notes = @notes.reject(&:internal?) return if @notes.blank? end mail_answer_thread(@merge_request, ) end |