app/models/unidom/party/person.rb in unidom-party-1.0.2 vs app/models/unidom/party/person.rb in unidom-party-1.1
- old
+ new
@@ -3,12 +3,11 @@
class Unidom::Party::Person < ActiveRecord::Base
self.table_name = 'unidom_people'
include Unidom::Common::Concerns::ModelExtension
+ include Unidom::Party::Concerns::AsSourceParty
+ include Unidom::Party::Concerns::AsTargetParty
validates :name, presence: true, length: { in: 2..self.columns_hash['name'].limit }
-
- has_many :source_party_relations, class_name: 'Unidom::Party::PartyRelation', as: :target_party
- has_many :target_party_relations, class_name: 'Unidom::Party::PartyRelation', as: :source_party
end