Logging contacts and addresses,view undeleted ones

This commit is contained in:
Andres Keskküla 2014-09-26 15:01:02 +03:00
parent bb3d2cc88a
commit d94eb22fc6
14 changed files with 263 additions and 3 deletions

View file

@ -1,6 +1,7 @@
class Contact < ActiveRecord::Base
# TODO: Foreign contact will get email with activation link/username/temp password
# TODO: Phone number validation, in first phase very minimam in order to support current registries
# TODO: Validate presence of name
include EppErrors
@ -32,6 +33,9 @@ class Contact < ActiveRecord::Base
delegate :street, to: :address#, prefix: true
delegate :zip, to: :address#, prefix: true
# archiving
has_paper_trail class_name: 'AddressVersion'
IDENT_TYPE_ICO = 'ico'
IDENT_TYPES = [
IDENT_TYPE_ICO, # Company registry code (or similar)