mirror of
https://github.com/we-promise/sure.git
synced 2026-04-13 17:14:05 +00:00
* allow filtering uncategorized transactions * user can filter uncategorized transactions test * rubocop linting
12 lines
247 B
Ruby
12 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
|