mirror of
https://github.com/internetee/registry.git
synced 2025-08-02 07:52:04 +02:00
Do not #try
It's safe to assume that `registered_at` is always present
This commit is contained in:
parent
bd6ebb9d06
commit
b3d056b295
1 changed files with 1 additions and 1 deletions
|
@ -36,7 +36,7 @@ class WhoisRecord < ApplicationRecord
|
|||
h[:disclaimer] = disclaimer_text if disclaimer_text.present?
|
||||
h[:name] = domain.name
|
||||
h[:status] = domain.statuses.map { |x| status_map[x] || x }
|
||||
h[:registered] = domain.registered_at.try(:to_s, :iso8601)
|
||||
h[:registered] = domain.registered_at.iso8601
|
||||
h[:changed] = domain.updated_at.try(:to_s, :iso8601)
|
||||
h[:expire] = domain.valid_to.to_date.to_s
|
||||
h[:outzone] = domain.outzone_at.try(:to_date).try(:to_s)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue