mirror of
https://0xacab.org/sutty/sutty
synced 2024-11-16 10:21:42 +00:00
fix: usar el idioma de le usuarie
This commit is contained in:
parent
38d6f6d842
commit
8d31170086
1 changed files with 4 additions and 1 deletions
|
@ -32,7 +32,9 @@ class ApplicationController < ActionController::Base
|
||||||
return unless current_usuarie
|
return unless current_usuarie
|
||||||
return if current_usuarie.confirmed?
|
return if current_usuarie.confirmed?
|
||||||
|
|
||||||
flash[:notice] ||= I18n.t('devise.registrations.signed_up')
|
I18n.with_locale(current_usuarie.lang) do
|
||||||
|
flash[:notice] ||= I18n.t('devise.registrations.signed_up')
|
||||||
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
def uuid?(string)
|
def uuid?(string)
|
||||||
|
@ -92,6 +94,7 @@ class ApplicationController < ActionController::Base
|
||||||
protected
|
protected
|
||||||
|
|
||||||
def configure_permitted_parameters
|
def configure_permitted_parameters
|
||||||
|
devise_parameter_sanitizer.permit(:sign_up, keys: Usuarie::CONSENT_FIELDS)
|
||||||
devise_parameter_sanitizer.permit(:account_update, keys: %i[lang])
|
devise_parameter_sanitizer.permit(:account_update, keys: %i[lang])
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue