mirror of
https://github.com/internetee/registry.git
synced 2025-08-02 16:02:03 +02:00
Rubocop fixes
This commit is contained in:
parent
897ead3391
commit
7b05cef8ea
3 changed files with 49 additions and 36 deletions
|
@ -69,9 +69,9 @@ class Domain < ActiveRecord::Base
|
|||
oc = owner_contact.snapshot if owner_contact.is_a?(Contact)
|
||||
{
|
||||
owner_contact: oc,
|
||||
tech_contacts: tech_contacts.map{ |tc| tc.snapshot },
|
||||
admin_contacts: admin_contacts.map{ |ac| ac.snapshot },
|
||||
nameservers: nameservers.map{ |ns| ns.snapshot },
|
||||
tech_contacts: tech_contacts.map(&:snapshot),
|
||||
admin_contacts: admin_contacts.map(&:snapshot),
|
||||
nameservers: nameservers.map(&:snapshot),
|
||||
domain: make_snapshot
|
||||
}.to_yaml
|
||||
end
|
||||
|
@ -293,25 +293,24 @@ class Domain < ActiveRecord::Base
|
|||
|
||||
private
|
||||
|
||||
#for archiving
|
||||
#def version_owner
|
||||
# for archiving
|
||||
# def version_owner
|
||||
# return nil unless owner_contact
|
||||
# owner_contact.id
|
||||
#end
|
||||
# end
|
||||
|
||||
#def version_admin_contacts
|
||||
# def version_admin_contacts
|
||||
# return nil unless admin_contacts
|
||||
# return admin_contacts.map { |ns| ns.id }
|
||||
#end
|
||||
# end
|
||||
|
||||
#def version_tech_contacts
|
||||
# def version_tech_contacts
|
||||
# return nil unless tech_contacts
|
||||
# return tech_contacts.map { |ns| ns.id }
|
||||
#end
|
||||
# end
|
||||
|
||||
#def version_nameservers
|
||||
# def version_nameservers
|
||||
# return nil unless nameservers
|
||||
# return nameservers.map { |ns| ns.id }
|
||||
#end
|
||||
|
||||
# end
|
||||
end
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue