Remove Domain#valid_from

As unused. `created_at` is the same value as `valid_from`.

#787
This commit is contained in:
Artur Beljajev 2018-03-27 18:34:48 +03:00
parent de5979790f
commit 2f86b3c76b
11 changed files with 10 additions and 20 deletions

View file

@ -654,6 +654,7 @@ class Domain < ActiveRecord::Base
def as_json(_options)
hash = super
hash['auth_info'] = hash.delete('transfer_code') # API v1 requirement
hash['valid_from'] = hash['created_at'] # API v1 requirement
hash
end