mirror of
https://github.com/internetee/registry.git
synced 2025-08-02 07:52:04 +02:00
Whois update updates server
This commit is contained in:
parent
3b009dc194
commit
d9b2e5880a
2 changed files with 11 additions and 10 deletions
|
@ -13,6 +13,8 @@ class WhoisRecord < ActiveRecord::Base
|
|||
self.registrar_id = domain.registrar_id # for faster registrar updates
|
||||
end
|
||||
|
||||
after_save :update_whois_server
|
||||
|
||||
class << self
|
||||
def included
|
||||
includes(
|
||||
|
@ -141,7 +143,6 @@ More information at http://internet.ee
|
|||
end
|
||||
|
||||
def update_whois_server
|
||||
return logger.info "NO WHOIS NAME for whois record id: #{id}" if name.blank?
|
||||
wd = Whois::Record.find_or_initialize_by(name: name)
|
||||
wd.body = body
|
||||
wd.json = json
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue