mirror of
https://github.com/internetee/registry.git
synced 2025-07-20 17:55:55 +02:00
Merge pull request #1923 from internetee/fix-domain-history-view
Fix domain history viewing pending_json
This commit is contained in:
commit
151ba314c1
2 changed files with 3 additions and 3 deletions
|
@ -58,8 +58,8 @@ class Nameserver < ApplicationRecord
|
||||||
end
|
end
|
||||||
|
|
||||||
def hostname=(hostname)
|
def hostname=(hostname)
|
||||||
self[:hostname] = SimpleIDN.to_unicode(hostname).gsub(/\.+$/, '')
|
self[:hostname] = SimpleIDN.to_unicode(hostname)&.gsub(/\.+$/, '')
|
||||||
self[:hostname_puny] = SimpleIDN.to_ascii(hostname).gsub(/\.+$/, '')
|
self[:hostname_puny] = SimpleIDN.to_ascii(hostname)&.gsub(/\.+$/, '')
|
||||||
end
|
end
|
||||||
|
|
||||||
class << self
|
class << self
|
||||||
|
|
|
@ -139,7 +139,7 @@
|
||||||
%td{colspan: 9}
|
%td{colspan: 9}
|
||||||
= preserve do
|
= preserve do
|
||||||
%pre
|
%pre
|
||||||
- formatted_req = Nokogiri::XML(domain.pending_json['frame'])
|
- formatted_req = Nokogiri::XML(domain.pending_json['frame'].to_json)
|
||||||
- if formatted_req.errors.none?
|
- if formatted_req.errors.none?
|
||||||
= formatted_req
|
= formatted_req
|
||||||
- else
|
- else
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue