mirror of
https://github.com/internetee/registry.git
synced 2025-06-11 23:24:48 +02:00
parent
827a330eec
commit
114f15d4ea
1 changed files with 1 additions and 1 deletions
|
@ -40,7 +40,7 @@ class Domain < ActiveRecord::Base
|
|||
has_many :contacts, through: :domain_contacts, source: :contact
|
||||
has_many :admin_contacts, through: :admin_domain_contacts, source: :contact
|
||||
has_many :tech_contacts, through: :tech_domain_contacts, source: :contact
|
||||
has_many :nameservers, dependent: :destroy
|
||||
has_many :nameservers, dependent: :destroy, inverse_of: :domain
|
||||
|
||||
accepts_nested_attributes_for :nameservers, allow_destroy: true,
|
||||
reject_if: proc { |attrs| attrs[:hostname].blank? }
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue