Skip to content

Commit

Permalink
show more intent in interactor (through comments)
Browse files Browse the repository at this point in the history
  • Loading branch information
fwolfst committed Dec 5, 2024
1 parent 06b9fae commit 72b8a75
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion app/interactors/donate.rb
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,14 @@ def call(receiver_id, amount_in_cents)
receiver: Receiver.find_by(id: receiver_id),
amount_in_cents:
)
# payment = Payment.new()

# setup payment

Donation.transaction do
donation.save
# payment.save
# send mails
# ....
end

DonateResult.new(success: donation.persisted?, donation:)
Expand Down

0 comments on commit 72b8a75

Please sign in to comment.