mirror of
https://github.com/internetee/registry.git
synced 2025-07-25 12:08:27 +02:00
Whois body generated on live
This commit is contained in:
parent
c239460d6c
commit
a393bf04cb
2 changed files with 2 additions and 4 deletions
|
@ -236,7 +236,7 @@ class Domain < ActiveRecord::Base
|
||||||
|
|
||||||
# rubocop:disable Metrics/MethodLength
|
# rubocop:disable Metrics/MethodLength
|
||||||
def update_whois_body
|
def update_whois_body
|
||||||
new_whois_body = <<-EOS
|
self.whois_body = <<-EOS
|
||||||
This Whois Server contains information on
|
This Whois Server contains information on
|
||||||
Estonian Top Level Domain ee TLD
|
Estonian Top Level Domain ee TLD
|
||||||
|
|
||||||
|
@ -261,8 +261,6 @@ class Domain < ActiveRecord::Base
|
||||||
changed: #{registrar.updated_at.to_s(:db)}
|
changed: #{registrar.updated_at.to_s(:db)}
|
||||||
EOS
|
EOS
|
||||||
|
|
||||||
return if whois_body == new_whois_body
|
|
||||||
update_column(whois_body: new_whois_body)
|
|
||||||
update_whois_server
|
update_whois_server
|
||||||
end
|
end
|
||||||
# handle_asynchronously :update_whois_body
|
# handle_asynchronously :update_whois_body
|
||||||
|
|
|
@ -75,7 +75,7 @@ describe Domain do
|
||||||
end
|
end
|
||||||
|
|
||||||
it 'should not have whois_body present by default' do
|
it 'should not have whois_body present by default' do
|
||||||
@domain.whois_body.present?.should == false
|
@domain.whois_body.present?.should == true
|
||||||
end
|
end
|
||||||
|
|
||||||
context 'with versioning' do
|
context 'with versioning' do
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue