mirror of
https://github.com/we-promise/sure.git
synced 2026-06-01 16:59:03 +00:00
Refactor: Use native error i18n lookup (#1076)
This commit is contained in:
@@ -17,7 +17,7 @@ class Settings::ProfilesController < SettingsController
|
||||
if Current.user.update(user_params_with_family)
|
||||
redirect_to settings_profile_path, notice: t(".success")
|
||||
else
|
||||
redirect_to settings_profile_path, alert: t(".file_size_error")
|
||||
redirect_to settings_profile_path, alert: Current.user.errors.full_messages.to_sentence
|
||||
end
|
||||
end
|
||||
|
||||
|
||||
Reference in New Issue
Block a user