mirror of
https://github.com/internetee/registry.git
synced 2025-07-21 18:26:06 +02:00
changed contact has_many addresses to has_one
This commit is contained in:
parent
356835bebf
commit
27ca5714cd
5 changed files with 6 additions and 6 deletions
|
@ -10,8 +10,8 @@ xml.epp_head do
|
|||
xml.tag!('contact:name', @contact.name)
|
||||
xml.tag!('contact:org', @contact.org_name)
|
||||
xml.tag!('contact:addr') do
|
||||
xml.tag!('contact:street', @contact.addresses.first.street)
|
||||
xml.tag!('contact:street', @contact.addresses.first.city)
|
||||
xml.tag!('contact:street', @contact.address.street)
|
||||
xml.tag!('contact:street', @contact.address.city)
|
||||
end
|
||||
xml.tag!('contact:voice', @contact.phone)
|
||||
xml.tag!('contact:fax', @contact.fax)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue