osem-fcy/app/helpers/payments_helper.rb

10 lines
174 B
Ruby
Raw Normal View History

module PaymentsHelper
def months
(1..12).collect{|n| ["#{n} - #{Date::MONTHNAMES[n]}", n]}
end
def years
(Date.current.year..Date.current.year + 15)
end
end