mirror of
https://github.com/maybe-finance/maybe.git
synced 2025-07-21 14:19:39 +02:00
* allow filtering uncategorized transactions * user can filter uncategorized transactions test * rubocop linting
11 lines
247 B
Ruby
11 lines
247 B
Ruby
module CategoriesHelper
|
|
def null_category
|
|
Category.new \
|
|
name: "Uncategorized",
|
|
color: Category::UNCATEGORIZED_COLOR
|
|
end
|
|
|
|
def family_categories
|
|
[ null_category ].concat(Current.family.categories.alphabetically)
|
|
end
|
|
end
|