Merge branch 'master' of github.com:domify/registry

This commit is contained in:
Priit Tark 2015-06-03 10:08:10 +03:00
commit 622e6988ef
10 changed files with 1291 additions and 1097 deletions

View file

@ -85,6 +85,10 @@ class Contact < ActiveRecord::Base
end
end
def roid
"EIS-#{id}"
end
def to_s
name || '[no name]'
end
@ -133,7 +137,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