mirror of
https://github.com/internetee/registry.git
synced 2025-05-19 02:39:37 +02:00
parent
16ebdc6c90
commit
e6069e06a9
3 changed files with 33 additions and 0 deletions
|
@ -15,6 +15,7 @@ class Contact < ActiveRecord::Base
|
|||
has_paper_trail class_name: "ContactVersion", meta: { children: :children_log }
|
||||
|
||||
attr_accessor :legal_document_id
|
||||
alias_attribute :kind, :ident_type
|
||||
|
||||
accepts_nested_attributes_for :legal_documents
|
||||
|
||||
|
@ -583,4 +584,9 @@ class Contact < ActiveRecord::Base
|
|||
self[attr_name.to_sym] = nil
|
||||
end
|
||||
end
|
||||
|
||||
def reg_no
|
||||
return if priv?
|
||||
ident
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue