mirror of
https://github.com/internetee/registry.git
synced 2025-06-11 07:04:47 +02:00
Merge branch 'master' into registry-787
# Conflicts: # db/structure.sql
This commit is contained in:
commit
96e2136c38
92 changed files with 860 additions and 271 deletions
|
@ -18,7 +18,7 @@ class Epp::Domain < Domain
|
|||
|
||||
after_validation :validate_contacts
|
||||
def validate_contacts
|
||||
return true if is_renewal || is_transfer
|
||||
return true if is_transfer
|
||||
|
||||
ok = true
|
||||
active_admins = admin_domain_contacts.select { |x| !x.marked_for_destruction? }
|
||||
|
@ -38,16 +38,6 @@ class Epp::Domain < Domain
|
|||
ok
|
||||
end
|
||||
|
||||
before_save :link_contacts
|
||||
def link_contacts
|
||||
#TODO: cleanup cache if we think to cache dynamic statuses
|
||||
end
|
||||
|
||||
after_destroy :unlink_contacts
|
||||
def unlink_contacts
|
||||
#TODO: cleanup cache if we think to cache dynamic statuses
|
||||
end
|
||||
|
||||
class << self
|
||||
def new_from_epp(frame, current_user)
|
||||
domain = Epp::Domain.new
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue