Refactor send_thank_you_note method and according specs

This commit is contained in:
Janis Vaneylen
2022-09-02 14:23:42 +02:00
committed by Sebastian Serth
parent 60dc8c3b7e
commit e77223e628
2 changed files with 3 additions and 3 deletions

View File

@ -45,7 +45,7 @@ class UserMailer < ApplicationMailer
end
def send_thank_you_note(request_for_comment, receiver)
token = AuthenticationToken.generate!(request_for_comment.user)
token = AuthenticationToken.generate!(receiver)
@receiver_displayname = receiver.displayname
@author = request_for_comment.user.displayname
@thank_you_note = request_for_comment.thank_you_note