-
Notifications
You must be signed in to change notification settings - Fork 0
[WRSAT-177] create reminders email screen #66
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
Conversation
anisharamnani
commented
Jan 7, 2026
app/controllers/email_controller.rb
Outdated
|
|
||
| def progress_bar_step | ||
| 3 | ||
| end | ||
|
|
||
| def section_name | ||
| I18n.t("general.basic_information") | ||
| 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.
| def progress_bar_step | |
| 3 | |
| end | |
| def section_name | |
| I18n.t("general.basic_information") | |
| 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.
this stuff is already in BasicInfoConcern! so you just have to include that
app/models/screener.rb
Outdated
| end | ||
|
|
||
| with_context :email do | ||
| validates :email, 'valid_email_2/email': true, confirmation: true |
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.
sorry to be a square but you should add a test to screener_spec.rb for this
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.
you aren’t being a square! i knew i was going to be missing things, because while i’ve reviewed things this is one of the first i’ve done in some time.
|
looks like you need to lint! |
…nders-email-screen
|
|
||
| def strip_email | ||
| self.email = email.strip if email.present? | ||
| self.email_confirmation = email_confirmation.strip if email_confirmation.present? | ||
| 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.
so above i'm using normalizes for phone number. it applies more broadly than before_validation and i'm not completely sure what my opinion is on one vs the other. maybe we chat about it!