mirror of
https://github.com/internetee/registry.git
synced 2025-07-20 17:55:55 +02:00
Refactored whois from domain into whois body
This commit is contained in:
parent
920b3e71e0
commit
3d0d98d9b1
7 changed files with 204 additions and 51 deletions
|
@ -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', '') }
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue