5
0
Fork 0
mirror of https://0xacab.org/sutty/sutty synced 2024-11-17 04:26:21 +00:00

Merge branch 'issue-12952' into 'rails'

fix: enviar los correos de devise en el idioma de le usuarie #12952

See merge request sutty/sutty!142
This commit is contained in:
fauno 2023-04-10 15:16:33 +00:00
commit 378214470d

View file

@ -41,6 +41,12 @@ class Usuarie < ApplicationRecord
lock_access! if attempts_exceeded? && !access_locked?
end
def send_devise_notification(notification, *args)
I18n.with_locale(lang) do
devise_mailer.send(notification, self, *args).deliver_later
end
end
private
def lang_from_locale!