Skip to content

Commit c311f5d

Browse files
committed
fixes feedback true / false and wording
1 parent 2ac2eeb commit c311f5d

File tree

1 file changed

+3
-11
lines changed

1 file changed

+3
-11
lines changed

template_app/mail_sender.rb

Lines changed: 3 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -25,20 +25,15 @@ def assemble_subject(page_url)
2525

2626
def assemble_body(helpful: nil, comments: nil, date: nil, page_url: nil)
2727
<<-EOT
28-
Dear docs writer,
29-
30-
You just received new feedback.
31-
32-
The sender thought the document was #{helpfulness(helpful)}.
33-
3428
Date: #{date}
3529
3630
Page URL: #{page_url}
3731
32+
Helpful: #{helpful}
33+
3834
Comments:
39-
#{comments || "None given"}
35+
#{comments}
4036
41-
Happy editing!
4237
EOT
4338
end
4439

@@ -62,8 +57,5 @@ def merged_options
6257
config.merge({text: @body, subject: @subject})
6358
end
6459

65-
def helpfulness(was_helpful)
66-
was_helpful ? 'helpful' : 'not helpful'
67-
end
6860
end
6961
end

0 commit comments

Comments
 (0)