1
0
مراية لـ https://github.com/postalserver/postal.git تم المزامنة 2025-11-30 21:32:30 +00:00

fixes issue with creating new organizations when there are no ip pools

هذا الالتزام موجود في:
Adam Cooke
2017-04-27 10:34:22 +01:00
الأصل 10794f8573
التزام 3ed9438a00
2 ملفات معدلة مع 4 إضافات و2 حذوفات

عرض الملف

@@ -48,7 +48,9 @@ class Organization < ApplicationRecord
has_many :ip_pool_rules, :dependent => :destroy, :as => :owner
after_create do
self.ip_pools << IPPool.transactional.default
if pool = IPPool.transactional.default
self.ip_pools << IPPool.transactional.default
end
end
def status