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:
parent
24d4e09ef3
commit
4a51acfe67
2 changed files with 3 additions and 3 deletions
|
@ -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
|
||||
)
|
||||
|
|
|
@ -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 = []
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue