mirror of
https://0xacab.org/sutty/sutty
synced 2024-07-06 13:55:46 +00:00
fix: enviar los correos de devise en el idioma de le usuarie #12952
This commit is contained in:
parent
b15ebdf549
commit
ea71aafe58
|
@ -41,6 +41,12 @@ class Usuarie < ApplicationRecord
|
||||||
lock_access! if attempts_exceeded? && !access_locked?
|
lock_access! if attempts_exceeded? && !access_locked?
|
||||||
end
|
end
|
||||||
|
|
||||||
|
def send_devise_notification(notification, *args)
|
||||||
|
I18n.with_locale(lang) do
|
||||||
|
devise_mailer.send(notification, self, *args).deliver_later
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
private
|
private
|
||||||
|
|
||||||
def lang_from_locale!
|
def lang_from_locale!
|
||||||
|
|
Loading…
Reference in a new issue