Add and apply Style/SuperArguments rubocop rule
This rule was added in rubocop 1.64.0. For clarity, in order to make it obvious that we're modifying the object we received, we're excluding the Ahoy initializer, whose code was copied from the Ahoy documentation. We're also changing the `Types::BaseObject` class so we don't use a variable with the same name as the parameter and we don't get a false positive for this rule.
This commit is contained in:
@@ -5,8 +5,6 @@ class DeviseMailer < Devise::Mailer
|
||||
protected
|
||||
|
||||
def devise_mail(record, action, opts = {})
|
||||
I18n.with_locale record.locale do
|
||||
super(record, action, opts)
|
||||
end
|
||||
I18n.with_locale(record.locale) { super }
|
||||
end
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user