-
-
Notifications
You must be signed in to change notification settings - Fork 1k
address rubocop offenses: #2126
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
- fix warnings for wrong namespaces - fix safe navigation offense - turn off frozen string literal cop
@@ -22,7 +22,7 @@ module MailerExampleGroup | |||
included do | |||
include ::Rails.application.routes.url_helpers | |||
options = ::Rails.configuration.action_mailer.default_url_options | |||
options.each { |key, value| default_url_options[key] = value } if options | |||
options&.each { |key, value| default_url_options[key] = value } |
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.
What versions of Ruby does that operator support?
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.
>= 2.3.. v4 will drop support for ruby below 2.3, so using lonely operator should be safe..
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 @ignatiusreza. LGTM 🌮
Thanks :) |
Yeha! Thanks Jon and Ignatius |
- fix warnings for wrong namespaces - fix safe navigation offense - turn off frozen string literal cop
- fix warnings for wrong namespaces - fix safe navigation offense - turn off frozen string literal cop
rubocop released new version, which break our CI..
PS: let me know if I should open this against master instead..