mirror of
https://github.com/internetee/registry.git
synced 2025-07-05 10:43:32 +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
|
@ -9,7 +9,7 @@ module Epp::ContactsHelper
|
|||
|
||||
@contact.assign_attributes(name: ph[:postalInfo][:name])
|
||||
|
||||
@contact.addresses << new_address
|
||||
@contact.address = new_address
|
||||
stamp @contact
|
||||
|
||||
@contact.save
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue