mirror of
https://github.com/internetee/registry.git
synced 2025-05-18 18:29:40 +02:00
Rearrange contact info response fields #2660
This commit is contained in:
parent
1d76e10b55
commit
b1cec9007a
3 changed files with 27 additions and 15 deletions
|
@ -84,6 +84,10 @@ class Contact < ActiveRecord::Base
|
|||
end
|
||||
end
|
||||
|
||||
def roid
|
||||
"EIS-#{id}"
|
||||
end
|
||||
|
||||
def to_s
|
||||
name || '[no name]'
|
||||
end
|
||||
|
@ -132,7 +136,7 @@ class Contact < ActiveRecord::Base
|
|||
|
||||
# custom code from client
|
||||
# add prefix when needed
|
||||
if code.present?
|
||||
if code.present?
|
||||
prefix, *custom_code = code.split(':')
|
||||
code = custom_code.join(':') if prefix == registrar.code
|
||||
end
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue