mirror of
https://github.com/internetee/registry.git
synced 2025-07-20 09:46:09 +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
|
||||
|
||||
def hostname=(hostname)
|
||||
self[:hostname] = SimpleIDN.to_unicode(hostname).gsub(/\.+$/, '')
|
||||
self[:hostname_puny] = SimpleIDN.to_ascii(hostname).gsub(/\.+$/, '')
|
||||
self[:hostname] = SimpleIDN.to_unicode(hostname)&.gsub(/\.+$/, '')
|
||||
self[:hostname_puny] = SimpleIDN.to_ascii(hostname)&.gsub(/\.+$/, '')
|
||||
end
|
||||
|
||||
class << self
|
||||
|
|
|
@ -139,7 +139,7 @@
|
|||
%td{colspan: 9}
|
||||
= preserve do
|
||||
%pre
|
||||
- formatted_req = Nokogiri::XML(domain.pending_json['frame'])
|
||||
- formatted_req = Nokogiri::XML(domain.pending_json['frame'].to_json)
|
||||
- if formatted_req.errors.none?
|
||||
= formatted_req
|
||||
- else
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue