budget/app/models/credit_card_bill.rb

5 lines
111 B
Ruby

class CreditCardBill < ApplicationRecord
def unpaid
amount - Expense.credit_card_monthly_total
end
end