hide away IP pool things in the UI if not enabled

This commit is contained in:
Adam Cooke
2017-04-27 09:41:21 +01:00
parent 1f64c61105
commit 61da4bf48c
6 changed files with 12 additions and 16 deletions
+1 -1
View File
@@ -64,7 +64,7 @@ class QueuedMessage < ApplicationRecord
end
def allocate_ip_address
if Postal.config.general.use_ip_pools && self.message && pool = self.server.ip_pool_for_message(self.message)
if Postal.ip_pools? && self.message && pool = self.server.ip_pool_for_message(self.message)
self.ip_address = pool.ip_addresses.order("RAND()").first
end
end