Module: AgreementsHelper
- Defined in:
- app/helpers/agreements_helper.rb
Overview
View helper: agreements.
Instance Method Summary collapse
Instance Method Details
#setup_agreement(agreement) ⇒ Object
4 5 6 7 8 |
# File 'app/helpers/agreements_helper.rb', line 4 def setup_agreement(agreement) agreement.tap do |a| a.agreement_participants.build if sc.agreement_participants.blank? end end |
#setup_agreement_participant(agreement_participant) ⇒ Object
10 11 12 13 14 15 16 17 18 |
# File 'app/helpers/agreements_helper.rb', line 10 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 |