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

Merge branch 'issue-12952' into panel.sutty.nl
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful

This commit is contained in:
f 2023-04-04 11:36:14 -03:00
commit 6128e73f6f

View file

@ -43,6 +43,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!