Rearrange contact info response fields #2660

This commit is contained in:
Martin Lensment 2015-06-02 13:14:56 +03:00
parent 1d76e10b55
commit b1cec9007a
3 changed files with 27 additions and 15 deletions

View file

@ -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