gitlabhq/app/helpers/snippets_helper.rb

12 lines
288 B
Ruby
Raw Normal View History

2011-10-16 23:07:10 +02:00
module SnippetsHelper
2011-10-27 09:11:42 +02:00
def lifetime_select_options
2011-10-27 08:46:21 +02:00
options = [
['forever', nil],
2011-10-27 09:11:42 +02:00
['1 day', "#{Date.current + 1.day}"],
['1 week', "#{Date.current + 1.week}"],
['1 month', "#{Date.current + 1.month}"]
2011-10-27 08:46:21 +02:00
]
options_for_select(options)
end
2011-10-16 23:07:10 +02:00
end