mirror of
https://github.com/internetee/registry.git
synced 2025-08-05 01:11:43 +02:00
Refactor country
This commit is contained in:
parent
195aa4a890
commit
b86e2d1edb
3 changed files with 8 additions and 8 deletions
|
@ -5,7 +5,7 @@ xml.tag!('contact:postalInfo', type: 'int') do
|
|||
if @disclosure.try(:addr) || @owner
|
||||
xml.tag!('contact:addr') do
|
||||
xml.tag!('contact:street', address.street) if address
|
||||
xml.tag!('contact:cc', address.try(:country).try(:iso)) unless address.try(:country).nil?
|
||||
xml.tag!('contact:cc', address.country_code) unless address.country_code.nil?
|
||||
xml.tag!('contact:city', address.city) if address
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue