budget/app/helpers/expenses_helper.rb

8 lines
154 B
Ruby
Raw Permalink Normal View History

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