mirror of
https://github.com/internetee/registry.git
synced 2025-05-16 17:37:17 +02:00
parent
ded3bc846e
commit
bc55bc32bd
1 changed files with 6 additions and 0 deletions
|
@ -659,6 +659,12 @@ class Domain < ActiveRecord::Base
|
||||||
pending_json['new_registrant_id']
|
pending_json['new_registrant_id']
|
||||||
end
|
end
|
||||||
|
|
||||||
|
def as_json(_options)
|
||||||
|
hash = super
|
||||||
|
hash['auth_info'] = hash.delete('transfer_code') # API v1 requirement
|
||||||
|
hash
|
||||||
|
end
|
||||||
|
|
||||||
def self.to_csv
|
def self.to_csv
|
||||||
CSV.generate do |csv|
|
CSV.generate do |csv|
|
||||||
csv << column_names
|
csv << column_names
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue