-
Notifications
You must be signed in to change notification settings - Fork 11
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
CV2-2357: New UX for update to ToS #1818
Conversation
app/mailers/updated_terms_mailer.rb
Outdated
@@ -0,0 +1,12 @@ | |||
class UpdatedTermsMailer < ApplicationMailer | |||
layout nil |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Use 2 (not 1) spaces for indentation.
app/mailers/updated_terms_mailer.rb
Outdated
@@ -0,0 +1,12 @@ | |||
class UpdatedTermsMailer < ApplicationMailer | |||
layout nil |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Tab detected.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks Sawy, I just had one question.
app/mailers/updated_terms_mailer.rb
Outdated
|
||
def notify(recipient, name) | ||
@name = name | ||
@accept_terms_url = "https://meedan.com/legal/terms-of-service" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Question: Why this is hard-coded instead of reading from the configuration key tos_url
(https://github.com/meedan/check-api/blob/develop/config/config.yml.example#L70)?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fixed
puts "[#{Time.now}] Done in #{minutes} minutes." | ||
end | ||
end | ||
end |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice!
Code Climate has analyzed commit 1adb946 and detected 0 issues on this pull request. The test coverage on the diff in this pull request is 100.0% (100% is the threshold). This pull request will bring the total coverage in the repository to 100.0% (0.0% change). View more on Code Climate. |
Description
Send an email to all Check users notifying them that the ToS have been updated.
References: CV2-2357
How has this been tested?
Implemented automated tests.
Things to pay attention to during code review
Please describe parts of the change that require extra attention during code review, for example:
Checklist