mirror of
https://github.com/internetee/registry.git
synced 2025-08-05 01:11:43 +02:00
parent
90ed23f64d
commit
b6ecae6a35
41 changed files with 1239 additions and 61 deletions
|
@ -526,4 +526,20 @@ class Contact < ActiveRecord::Base
|
|||
|
||||
domain_names
|
||||
end
|
||||
|
||||
def address=(address)
|
||||
self.street = address.street
|
||||
self.zip = address.zip
|
||||
self.city = address.city
|
||||
self.state = address.state
|
||||
self.country_code = address.country_code
|
||||
end
|
||||
|
||||
def address
|
||||
Address.new(street, zip, city, state, country_code)
|
||||
end
|
||||
|
||||
def managed_by?(registrant_user)
|
||||
ident == registrant_user.ident
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue