budget/app/helpers/expenses_helper.rb
2022-11-20 15:43:33 -05:00

7 lines
152 B
Ruby

module ExpensesHelper
def expense_periods
Expense
.periods
.map { |key, value| [key.titleize, Expense.periods.key(value)] }
end
end