mirror of
https://github.com/internetee/registry.git
synced 2025-07-23 03:06:14 +02:00
REPP: Allow contact creation without address
This commit is contained in:
parent
a73cd53bff
commit
2e8ce7dbc4
1 changed files with 2 additions and 0 deletions
|
@ -101,6 +101,8 @@ module Repp
|
|||
|
||||
def contact_params_with_address
|
||||
addr = {}
|
||||
return contact_create_params unless contact_addr_params.key?(:addr)
|
||||
|
||||
contact_addr_params[:addr].each_key { |k| addr[k] = contact_addr_params[:addr][k] }
|
||||
contact_create_params.merge(addr)
|
||||
end
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue