1
0
Fork 0
mirror of https://github.com/maybe-finance/maybe.git synced 2025-08-09 23:45:21 +02:00

Fix rubocop linting

This commit is contained in:
hatz 2025-04-21 13:34:06 -05:00
parent 24d4e09ef3
commit 4a51acfe67
No known key found for this signature in database
2 changed files with 3 additions and 3 deletions

View file

@ -59,12 +59,12 @@ class BalanceSheet
account.define_singleton_method(:weight) do
classification_total.zero? ? 0 : account.converted_balance / classification_total.to_d * 100
end
# Define our subtype labeling logic
account.define_singleton_method(:subtype_label) do
accountable.subtype_label_for(account.subtype) || accountable.display_name
end
account
end.sort_by(&:weight).reverse
)

View file

@ -2,7 +2,7 @@ module Accountable
extend ActiveSupport::Concern
TYPES = %w[Depository Investment Crypto Property Vehicle OtherAsset CreditCard Loan OtherLiability]
# Define empty array to ensure all accountables have this defined
SUBTYPES = []