mirror of
https://0xacab.org/sutty/sutty
synced 2024-11-16 12:41:41 +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,8 +32,10 @@ class ApplicationController < ActionController::Base
|
||||||
return unless current_usuarie
|
return unless current_usuarie
|
||||||
return if current_usuarie.confirmed?
|
return if current_usuarie.confirmed?
|
||||||
|
|
||||||
|
I18n.with_locale(current_usuarie.lang) do
|
||||||
flash[:notice] ||= I18n.t('devise.registrations.signed_up')
|
flash[:notice] ||= I18n.t('devise.registrations.signed_up')
|
||||||
end
|
end
|
||||||
|
end
|
||||||
|
|
||||||
def uuid?(string)
|
def uuid?(string)
|
||||||
/[a-f0-9]{8}-([a-f0-9]{4}-){3}[a-f0-9]{12}/ =~ string
|
/[a-f0-9]{8}-([a-f0-9]{4}-){3}[a-f0-9]{12}/ =~ 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