Added private and public whois, refactored to dir

This commit is contained in:
Andres Keskküla 2014-12-08 16:03:40 +02:00
parent 3c5563b9a9
commit 67519a46f4
7 changed files with 17 additions and 17 deletions

View file

@ -0,0 +1,3 @@
class WhoisDomain < WhoisPrivateServer
self.table_name = 'domains'
end

View file

@ -0,0 +1,4 @@
class WhoisPrivateServer < ActiveRecord::Base
self.abstract_class = true
establish_connection :"#{Rails.env}_private_whois"
end

View file

@ -0,0 +1,3 @@
class WhoisDomain < WhoisPublicServer
self.table_name = 'domains'
end

View file

@ -0,0 +1,4 @@
class WhoisPublicServer < ActiveRecord::Base
self.abstract_class = true
establish_connection :"#{Rails.env}_public_whois"
end

View file

@ -1,3 +0,0 @@
class WhoisDomain < WhoisServer
self.table_name = 'domains'
end

View file

@ -1,4 +0,0 @@
class WhoisServer < ActiveRecord::Base
self.abstract_class = true
establish_connection :"#{Rails.env}_whois"
end