Fix attribute name

This commit is contained in:
Artur Beljajev 2018-03-31 12:55:08 +03:00
parent 157bf228b0
commit 77104582f7

View file

@ -654,7 +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['valid_from'] = hash['registered_at'] # API v1 requirement
hash
end