Skip to content

Commit

Permalink
Add method to send expense invite email if invitation exists
Browse files Browse the repository at this point in the history
  • Loading branch information
andrew committed Jan 26, 2025
1 parent 2c18d9b commit 14381b6
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions app/models/project_allocation.rb
Original file line number Diff line number Diff line change
Expand Up @@ -464,6 +464,11 @@ def send_invitation
invitation.try(:send_email)
end

def send_expense_invite_email
return unless invitation.present?
invitation.send_expense_invite_email
end

def reject_funding!
project.update!(funding_rejected: true)
# reject all other invitations for the same project
Expand Down

0 comments on commit 14381b6

Please sign in to comment.