Refactor send_thank_you_note method and according specs
This commit is contained in:

committed by
Sebastian Serth

parent
60dc8c3b7e
commit
e77223e628
@ -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
|
||||
|
Reference in New Issue
Block a user