budget/app/helpers/expenses_helper.rb

8 lines
154 B
Ruby
Raw Normal View History

2022-11-20 15:43:33 -05:00
module ExpensesHelper
def expense_periods
Expense
.periods
2024-06-21 21:58:57 -04:00
.map { |key, value| [ key.titleize, Expense.periods.key(value) ] }
2022-11-20 15:43:33 -05:00
end
end