app/models/unidom/party/party_relation.rb in unidom-party-1.9.1 vs app/models/unidom/party/party_relation.rb in unidom-party-1.9.2

- old
+ new

@@ -5,12 +5,9 @@ self.table_name = 'unidom_party_relations' include Unidom::Common::Concerns::ModelExtension - #validates :grade, presence: true, numericality: { integer_only: true } - #validates :priority, presence: true, numericality: { integer_only: true } - belongs_to :source_party, polymorphic: true belongs_to :target_party, polymorphic: true scope :source_party_is, ->(source_party) { where source_party: source_party } scope :target_party_is, ->(target_party) { where target_party: target_party }