app/concepts/offer/contracts.rb
# Contact people either belong to one of the Organizations or are SPoC
Contact people either belong to one of the Organizations or are SPoC
Contact people either belong to one of the Organizations or are SPoC
def contact_people_are_choosable
      contact_people.each do |contact_person|
        next if contact_person.spoc ||
                organizations.include?(contact_person.organization)
        custom_error :contact_people, 'contact_person_not_choosable'
      end
    end
def contact_people_are_choosable contact_people . each do | contact_person | next if contact_person . spoc || organizations . include? ( contact_person . organization ) custom_error :contact_people , 'contact_person_not_choosable' end end
Contact people either belong to one of the Organizations or are SPoC
Contact people either belong to one of the Organizations or are SPoC
# There are no intersections between both sets of orgas and not SPoC