Better messaging around deletion of customers

This commit is contained in:
Rob Harrington
2016-06-17 14:47:04 +10:00
parent d9b3366a5c
commit 6586e67a5c
7 changed files with 89 additions and 8 deletions

View File

@@ -48,6 +48,7 @@ module Admin
invoke_callbacks(:destroy, :fails)
respond_with(@object) do |format|
format.html { redirect_to location_after_destroy }
format.json { render json: { errors: @object.errors.full_messages }, status: :conflict }
end
end
end