mirror of
https://github.com/internetee/registry.git
synced 2025-07-21 10:16:01 +02:00
Update contact now userstamps on success
This commit is contained in:
parent
d2b94895b1
commit
6be202ad16
2 changed files with 11 additions and 0 deletions
|
@ -12,6 +12,7 @@ module Epp::ContactsHelper
|
|||
def update_contact
|
||||
code = params_hash['epp']['command']['update']['update'][:id]
|
||||
@contact = Contact.where(code: code).first
|
||||
stamp @contact
|
||||
if @contact.update_attributes(contact_and_address_attributes.delete_if { |k, v| v.nil? })
|
||||
render 'epp/contacts/update'
|
||||
else
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue