Module: AgreementsHelper
- Defined in:
- app/helpers/agreements_helper.rb
Instance Method Summary collapse
Instance Method Details
#setup_agreement(agreement) ⇒ Object
3 4 5 6 7 |
# File 'app/helpers/agreements_helper.rb', line 3 def setup_agreement(agreement) agreement.tap do |a| a.agreement_participants.build unless sc.agreement_participants.present? end end |
#setup_agreement_participant(agreement_participant) ⇒ Object
9 10 11 12 13 14 15 16 17 |
# File 'app/helpers/agreements_helper.rb', line 9 def setup_agreement_participant(agreement_participant) agreement_participant.tap do |ap| ap.party ||= Contact.new if ap.party.contact_points.empty? ap.party.contact_points.build(category: ContactPoint::EMAIL) ap.party.contact_points.build(category: ContactPoint::PHONE) end end end |