mirror of
https://github.com/internetee/registry.git
synced 2025-07-21 10:16:01 +02:00
Create legal documents
This commit is contained in:
parent
4f10cccdfa
commit
e09ddd3138
10 changed files with 274 additions and 7 deletions
|
@ -35,6 +35,8 @@ class Domain < ActiveRecord::Base
|
|||
accepts_nested_attributes_for :dnskeys, allow_destroy: true,
|
||||
reject_if: proc { |attrs| attrs[:public_key].blank? }
|
||||
|
||||
has_many :legal_documents, as: :documentable
|
||||
|
||||
delegate :code, to: :owner_contact, prefix: true
|
||||
delegate :email, to: :owner_contact, prefix: true
|
||||
delegate :ident, to: :owner_contact, prefix: true
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue