mirror of
https://github.com/internetee/registry.git
synced 2025-08-04 08:52:04 +02:00
Contact linked test update/refactor #2411
This commit is contained in:
parent
7fa9fb3c6e
commit
a9ba4dbfd2
7 changed files with 16 additions and 10 deletions
|
@ -51,6 +51,9 @@ class Contact < ActiveRecord::Base
|
|||
manage_ok
|
||||
end
|
||||
|
||||
# for overwrite when doing children loop
|
||||
attr_writer :domains_present
|
||||
|
||||
scope :current_registrars, ->(id) { where(registrar_id: id) }
|
||||
|
||||
BIC = 'bic'
|
||||
|
@ -313,11 +316,6 @@ class Contact < ActiveRecord::Base
|
|||
domain_contacts.present? || registrant_domains.present?
|
||||
end
|
||||
|
||||
# for overwrite when doing children loop
|
||||
def domains_present=(boolean)
|
||||
@domains_present = boolean
|
||||
end
|
||||
|
||||
def manage_linked
|
||||
if domains_present?
|
||||
set_linked
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue