mirror of
https://github.com/internetee/registry.git
synced 2025-06-11 23:24:48 +02:00
Fix attribute name
This commit is contained in:
parent
157bf228b0
commit
77104582f7
1 changed files with 1 additions and 1 deletions
|
@ -654,7 +654,7 @@ class Domain < ActiveRecord::Base
|
||||||
def as_json(_options)
|
def as_json(_options)
|
||||||
hash = super
|
hash = super
|
||||||
hash['auth_info'] = hash.delete('transfer_code') # API v1 requirement
|
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
|
hash
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue