1
0
Fork 0
mirror of https://github.com/maybe-finance/maybe.git synced 2025-07-20 05:39:39 +02:00
Maybe/app/helpers/categories_helper.rb

26 lines
535 B
Ruby
Raw Normal View History

module CategoriesHelper
def transfer_category
Category.new \
name: "Transfer",
color: Category::TRANSFER_COLOR,
lucide_icon: "arrow-right-left"
end
def payment_category
Category.new \
name: "Payment",
color: Category::PAYMENT_COLOR,
lucide_icon: "arrow-right"
end
def trade_category
Category.new \
name: "Trade",
color: Category::TRADE_COLOR
end
def family_categories
[ Category.uncategorized ].concat(Current.family.categories.alphabetically)
end
end