mirror of
https://github.com/internetee/registry.git
synced 2025-08-05 09:21:43 +02:00
Nested form for domain
This commit is contained in:
parent
d6543f2148
commit
4fef7e94c8
8 changed files with 382 additions and 26 deletions
|
@ -14,7 +14,8 @@ class Domain < ActiveRecord::Base
|
|||
where(domain_contacts: { contact_type: DomainContact::ADMIN })
|
||||
end, through: :domain_contacts, source: :contact
|
||||
|
||||
has_many :nameservers, dependent: :delete_all, autosave: true
|
||||
has_many :nameservers, dependent: :delete_all
|
||||
accepts_nested_attributes_for :nameservers, allow_destroy: true
|
||||
|
||||
has_many :domain_statuses, dependent: :delete_all
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue