Skip to content
This repository has been archived by the owner on Apr 27, 2022. It is now read-only.

truncate message as subject, update rubocop #3

Merged
merged 3 commits into from
Feb 14, 2018

Conversation

lbiedinger
Copy link
Member

No description provided.

@lbiedinger lbiedinger requested a review from rwd February 13, 2018 10:32
@@ -12,7 +12,7 @@ def post(text:, type:, page:, ip:)
@page = page
@ip = ip

mail(to: Rails.application.config.x.feedback_mail_to, subject: 'User feedback')
mail(to: Rails.application.config.x.feedback_mail_to, subject: text.truncate(100))
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should we be sending the separator: ' ' option to #truncate to truncate on a word boundary?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

On an average feedback message and with 100 characters I don't see any big downsides to this and since it makes for slightly nicer output, sure.

@@ -12,7 +12,7 @@ def post(text:, type:, page:, ip:)
@page = page
@ip = ip

mail(to: Rails.application.config.x.feedback_mail_to, subject: 'User feedback')
mail(to: Rails.application.config.x.feedback_mail_to, subject: text.truncate(100, separator: ' '))

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Line is too long. [106/80]

@rwd rwd merged commit 070cf84 into develop Feb 14, 2018
@rwd rwd deleted the feat/EC-2607-truncated-message-subject branch February 14, 2018 10:19
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants