From c09aac423e328224418c0bfb1e27ebe86e94d6cf Mon Sep 17 00:00:00 2001 From: briri Date: Tue, 12 Apr 2022 09:38:34 -0700 Subject: [PATCH] fix issue with string token for model save errors --- app/controllers/application_controller.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/controllers/application_controller.rb b/app/controllers/application_controller.rb index 035029620f..da8cde06da 100644 --- a/app/controllers/application_controller.rb +++ b/app/controllers/application_controller.rb @@ -105,7 +105,7 @@ def authenticate_admin! end def failure_message(obj, action = 'save') - format(_('Unable to %{action} the %{object}. {errors}'), + format(_('Unable to %{action} the %{object}. %{errors}'), object: obj_name_for_display(obj), action: action || 'save', errors: errors_for_display(obj)) end