mirror of
https://github.com/internetee/registry.git
synced 2025-08-02 07:52:04 +02:00
Merge pull request #1130 from internetee/update-emails-content
Update emails' content
This commit is contained in:
commit
7aa249af34
47 changed files with 291 additions and 816 deletions
|
@ -242,10 +242,6 @@ class Contact < ActiveRecord::Base
|
|||
kit.to_pdf
|
||||
end
|
||||
|
||||
def names
|
||||
pluck(:name)
|
||||
end
|
||||
|
||||
def emails
|
||||
pluck(:email)
|
||||
end
|
||||
|
|
|
@ -597,24 +597,8 @@ class Domain < ActiveRecord::Base
|
|||
end
|
||||
end
|
||||
|
||||
def admin_contact_names
|
||||
admin_contacts.names
|
||||
end
|
||||
|
||||
def admin_contact_emails
|
||||
admin_contacts.emails
|
||||
end
|
||||
|
||||
def tech_contact_names
|
||||
tech_contacts.names
|
||||
end
|
||||
|
||||
def nameserver_hostnames
|
||||
nameservers.hostnames
|
||||
end
|
||||
|
||||
def primary_contact_emails
|
||||
(admin_contact_emails << registrant_email).uniq
|
||||
(admin_contacts.emails + [registrant.email]).uniq
|
||||
end
|
||||
|
||||
def new_registrant_email
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue