remove types from ip pools

closes #24
This commit is contained in:
Adam Cooke
2017-04-28 16:40:53 +01:00
parent 88974cee85
commit 698b580db4
10 changed files with 14 additions and 29 deletions
+2 -2
View File
@@ -48,8 +48,8 @@ class Organization < ApplicationRecord
has_many :ip_pool_rules, :dependent => :destroy, :as => :owner
after_create do
if pool = IPPool.transactional.default
self.ip_pools << IPPool.transactional.default
if pool = IPPool.default
self.ip_pools << IPPool.default
end
end