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.
11 lines
240 B
Ruby
11 lines
240 B
Ruby
class DeviseMailer < Devise::Mailer
|
|
include Devise::Controllers::UrlHelpers
|
|
default template_path: "devise/mailer"
|
|
|
|
protected
|
|
|
|
def devise_mail(record, action, opts = {})
|
|
I18n.with_locale(record.locale) { super }
|
|
end
|
|
end
|