Contact statuses and update_contact modified

This commit is contained in:
Andres Keskküla 2014-12-18 13:53:01 +02:00
parent c089544eae
commit 9c4f0a63a0
6 changed files with 107 additions and 3 deletions

View file

@ -16,12 +16,17 @@ xml.epp_head do
xml.tag!('contact:crDate', @contact.created_at)
xml.tag!('contact:upID', @contact.up_id) if @contact.up_id
xml.tag!('contact:upDate', @contact.updated_at) unless @contact.updated_at == @contact.created_at
xml.tag!('contact:ident', @contact.ident, type: @contact.ident_type)
xml.tag!('contact:trDate', '123') if false
if @owner
xml.tag!('contact:authInfo') do
xml.tag!('contact:pw', @contact.auth_info) # Doc says we have to return this but is it necessary?
end
end
# statuses
@contact.statuses.each do |cs|
xml.tag!('contact:status', s: cs.value)
end
xml << render('/epp/contacts/disclosure_policy')
end
end