diff options
author | Robert Speicher <rspeicher@gmail.com> | 2016-03-06 01:17:49 +0300 |
---|---|---|
committer | Robert Speicher <rspeicher@gmail.com> | 2016-03-06 02:12:17 +0300 |
commit | 836d5930332797192094ce4a3c8083e96f7e8c53 (patch) | |
tree | c747507b44acc831105773a6560bd6e3694a93bb /app/helpers/snippets_helper.rb | |
parent | 28bee175dbdba8bb0ca04887d6f8d5c4d727a0bd (diff) |
Remove `Snippet#expires_at`
This was removed from the interface in
https://github.com/gitlabhq/gitlabhq/pull/6027 but its implementation
lingered around for two years.
Diffstat (limited to 'app/helpers/snippets_helper.rb')
-rw-r--r-- | app/helpers/snippets_helper.rb | 10 |
1 files changed, 0 insertions, 10 deletions
diff --git a/app/helpers/snippets_helper.rb b/app/helpers/snippets_helper.rb index 41ae4048992..0a5a8eb5aee 100644 --- a/app/helpers/snippets_helper.rb +++ b/app/helpers/snippets_helper.rb @@ -1,14 +1,4 @@ module SnippetsHelper - def lifetime_select_options - options = [ - ['forever', nil], - ['1 day', "#{Date.current + 1.day}"], - ['1 week', "#{Date.current + 1.week}"], - ['1 month', "#{Date.current + 1.month}"] - ] - options_for_select(options) - end - def reliable_snippet_path(snippet) if snippet.project_id? namespace_project_snippet_path(snippet.project.namespace, |