1
0
مراية لـ https://github.com/postalserver/postal.git تم المزامنة 2025-12-01 05:43:04 +00:00

Correct error message to reflect reality of dependency rules

hopefully fixes #2174
هذا الالتزام موجود في:
Charlie Smurthwaite
2023-03-14 02:06:41 +00:00
الأصل 7ea00dfa3b
التزام cefc7d17b8

عرض الملف

@@ -32,7 +32,7 @@ class IPPoolsController < ApplicationController
@ip_pool.destroy
redirect_to_with_json :ip_pools, :notice => "IP pool has been removed successfully."
rescue ActiveRecord::DeleteRestrictionError => e
redirect_to_with_json [:edit, @ip_pool], :alert => "IP pool cannot be removed because it is still assigned to servers/rules."
redirect_to_with_json [:edit, @ip_pool], :alert => "IP pool cannot be removed because it still has associated addresses or servers."
end
private