From ee07e89a5ec9aa4a3a37f428de7aceb75071e202 Mon Sep 17 00:00:00 2001 From: Zee Spencer <50284+zspencer@users.noreply.github.com> Date: Mon, 29 Jan 2024 16:05:52 -0800 Subject: [PATCH] =?UTF-8?q?=F0=9F=A7=B9=20`Tobias`:=20We=20don't=20need=20?= =?UTF-8?q?to=20call=20`id`=20when=20a=20relationship=20is=20defined?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/furniture/tobias/payout.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/furniture/tobias/payout.rb b/app/furniture/tobias/payout.rb index 035d9d7ab..e2b3fbb43 100644 --- a/app/furniture/tobias/payout.rb +++ b/app/furniture/tobias/payout.rb @@ -13,7 +13,7 @@ def issue per_beneficiary_amount = (amount / beneficiaries.count) beneficiaries.each do |beneficiary| - payments.create_with(amount: per_beneficiary_amount).find_or_create_by(beneficiary_id: beneficiary.id) + payments.create_with(amount: per_beneficiary_amount).find_or_create_by(beneficiary: beneficiary) end end end