budget/app/helpers/expenses_helper.rb

7 lines
154 B
Ruby

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