111297422-job_and_method_update

This commit is contained in:
Stas 2016-01-26 14:36:09 +02:00
parent 8ed8a46046
commit a0fcd8be8b
4 changed files with 28 additions and 13 deletions

View file

@ -35,6 +35,8 @@ class ReservedDomain < ActiveRecord::Base
update_whois_server
end
alias_method :update_whois_record, :generate_data
def update_whois_server
wr = Whois::Record.find_or_initialize_by(name: name)
wr.body = @body