mirror of
https://github.com/internetee/registry.git
synced 2025-06-05 20:27:30 +02:00
Add registrar poll message after updateing registrant contact(s) names
This commit is contained in:
parent
89154c4fe2
commit
3444c4e021
1 changed files with 5 additions and 1 deletions
|
@ -58,7 +58,11 @@ class RegistrantUser < User
|
|||
contacts = Contact.where(ident: ident, ident_country_code: country.alpha2)
|
||||
.where('UPPER(name) != UPPER(?)', username)
|
||||
|
||||
contacts.each { |c| c.update(name: username) }
|
||||
contacts.each do |contact|
|
||||
contact.update(name: username)
|
||||
action = actions.create!(contact: contact, operation: :update)
|
||||
contact.registrar.notify(action)
|
||||
end
|
||||
end
|
||||
|
||||
class << self
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue