Views and tests for contact disclosure

This commit is contained in:
Andres Keskküla 2014-11-25 16:29:40 +02:00
parent ea2b64bc69
commit c03818968f
9 changed files with 130 additions and 78 deletions

View file

@ -5,7 +5,7 @@ class Contact < ActiveRecord::Base
include EppErrors
has_one :address, dependent: :destroy
has_one :disclosure, class_name: 'ContactDisclosure'
has_one :disclosure, class_name: 'ContactDisclosure', dependent: :destroy
has_many :domain_contacts
has_many :domains, through: :domain_contacts