Skip to content

Commit

Permalink
Merge pull request #3150 from DMPRoadmap/patch-error-msgs
Browse files Browse the repository at this point in the history
fix issue with string token for model save errors
  • Loading branch information
raycarrick-ed committed Apr 14, 2022
2 parents ac99b72 + c09aac4 commit 7cac435
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/controllers/application_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 7cac435

Please sign in to comment.