budget/app/helpers/expenses_helper.rb
Andrew Tomaka 72ffe7215d
All checks were successful
continuous-integration/drone/push Build is passing
continuous-integration/drone/tag Build is passing
Start running Rails from the main branch (#16)
Reviewed-on: #16
2024-06-21 23:35:36 -04:00

7 lines
154 B
Ruby

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