Files
grecia/app/mailers/devise_mailer.rb
Javi Martín 16315e14d2 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.
2024-07-09 11:23:02 +02:00

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