mirror of
https://github.com/internetee/registry.git
synced 2025-05-18 02:09:39 +02:00
Story#109070142 - Nameservers update normalization
This commit is contained in:
parent
0af529e8a8
commit
91b65e2d61
1 changed files with 2 additions and 2 deletions
|
@ -35,8 +35,8 @@ class Nameserver < ActiveRecord::Base
|
|||
|
||||
def normalize_attributes
|
||||
self.hostname = hostname.try(:strip).try(:downcase)
|
||||
self.ipv4 = ipv4.try(:strip)
|
||||
self.ipv6 = ipv6.try(:strip).try(:upcase)
|
||||
self.ipv4 = Array(ipv4).reject(&:blank?).map(&:strip)
|
||||
self.ipv6 = Array(ipv4).reject(&:blank?).map(&:strip).map(&:upcase)
|
||||
end
|
||||
|
||||
def to_s
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue