Refactored whois from domain into whois body

This commit is contained in:
Priit Tark 2015-04-22 10:39:52 +03:00
parent 920b3e71e0
commit 3d0d98d9b1
7 changed files with 204 additions and 51 deletions

View file

@ -109,6 +109,15 @@ class DomainStatus < ActiveRecord::Base
CLIENT_STATUSES.include?(value)
end
def human_value
case value
when 'ok'
'ok (paid and in zone)'
else
value
end
end
class << self
def statuses_for_client
CLIENT_STATUSES.map { |x| x.sub('client', '') }