global domains aren't supported any longer

This commit is contained in:
Adam Cooke
2017-05-04 13:04:48 +01:00
parent 22e0dd27ae
commit 3e281b576e
-5
View File
@@ -231,11 +231,6 @@ class Server < ApplicationRecord
return domain
end
# Check with global domains
if route = self.routes.includes(:domain).references(:domain).where(:domains => {:server_id => nil, :name => domain_name}, :name => uname).first
return route.domain
end
if any_domain = self.domains.verified.where(:use_for_any => true).order(:name).first
return any_domain
end