mirror of
https://github.com/internetee/registry.git
synced 2025-05-17 17:59:47 +02:00
11031910-callbacks_for_whois_server
This commit is contained in:
parent
2d35556f2b
commit
a440169eaf
3 changed files with 42 additions and 1 deletions
|
@ -24,7 +24,7 @@ class Admin::ReservedDomainsController < AdminController
|
|||
ReservedDomain.transaction do
|
||||
# removing old ones
|
||||
existing = ReservedDomain.any_of_domains(names.keys).pluck(:id)
|
||||
ReservedDomain.where.not(id: existing).delete_all
|
||||
ReservedDomain.where.not(id: existing).destroy_all
|
||||
|
||||
#updating and adding
|
||||
names.each do |name, psw|
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue