Skip to content

Commit

Permalink
fix issue with string token for model save errors
Browse files Browse the repository at this point in the history
  • Loading branch information
briri committed Apr 12, 2022
1 parent 9589862 commit c09aac4
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 c09aac4

Please sign in to comment.