mirror of
https://github.com/internetee/registry.git
synced 2025-07-23 03:06:14 +02:00
parent
640faaadb9
commit
42e8f86dae
51 changed files with 1619 additions and 53 deletions
|
@ -8,6 +8,7 @@ class Domain < ActiveRecord::Base
|
|||
include Concerns::Domain::Deletable
|
||||
include Concerns::Domain::Transferable
|
||||
include Concerns::Domain::RegistryLockable
|
||||
include Concerns::Domain::Releasable
|
||||
|
||||
has_paper_trail class_name: "DomainVersion", meta: { children: :children_log }
|
||||
|
||||
|
@ -582,6 +583,10 @@ class Domain < ActiveRecord::Base
|
|||
hash
|
||||
end
|
||||
|
||||
def domain_name
|
||||
DNS::DomainName.new(name)
|
||||
end
|
||||
|
||||
def self.to_csv
|
||||
CSV.generate do |csv|
|
||||
csv << column_names
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue