Skip to content
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

Miscellaneous improvements to admin forms for editing user #2531

Merged
merged 4 commits into from
Nov 20, 2023

Conversation

This method is more intention-revealing than calling `Object#blank?` on
the return value from `User#reason_for_2sv_exemption`.
Avoiding the `!` makes the code more readable.
This is more readable and avoid having to call `String#html_safe`.

As suggested by @chrisroos.
Copy link
Contributor

@chrislo chrislo left a comment

Choose a reason for hiding this comment

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

Looks good to me 👍

@floehopper
Copy link
Contributor Author

Thanks, @chrislo! 🙏

@floehopper floehopper merged commit 9eeb7e5 into main Nov 20, 2023
11 checks passed
@floehopper floehopper deleted the misc-improvements-to-admin-forms-for-editing-user branch November 20, 2023 16:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants