1
0
Fork 0
mirror of https://github.com/maybe-finance/maybe.git synced 2025-08-10 16:05:22 +02:00

Remove unused code

This commit is contained in:
Zach Gollwitzer 2025-06-20 12:56:12 -04:00
parent ec7882b09c
commit af0a2b9e92

View file

@ -37,18 +37,4 @@ module EntriesHelper
entry.name
].join("")
end
# Helper method to derive transfer name without Transfer association
def transfer_name_for_transaction(transaction)
entry = transaction.entry
# For loan payments, use payment language
if transaction.loan_payment?
"Payment to #{entry.account.name}"
# For other transfer types, use transfer language
else
# Default transfer name based on the account
"Transfer involving #{entry.account.name}"
end
end
end