diff options
author | Nick Thomas <nick@gitlab.com> | 2018-09-05 16:49:14 +0300 |
---|---|---|
committer | Nick Thomas <nick@gitlab.com> | 2018-09-05 17:10:39 +0300 |
commit | 803bf517f8dc804a1b9acbbe0482a5fd63f577a2 (patch) | |
tree | 991822fdaf5b135a1076ad8e46a51ecd8fa8c29e /app/helpers | |
parent | ca92fcd9de5863532bd54cc1b601883c8f1ad37c (diff) |
Rename BlobsHelper#dropdown_names
Diffstat (limited to 'app/helpers')
-rw-r--r-- | app/helpers/blob_helper.rb | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/app/helpers/blob_helper.rb b/app/helpers/blob_helper.rb index c9f2f1e3caf..96f7415ae98 100644 --- a/app/helpers/blob_helper.rb +++ b/app/helpers/blob_helper.rb @@ -158,14 +158,14 @@ module BlobHelper end def licenses_for_select - @licenses_for_select ||= dropdown_names(LicenseTemplateFinder.new.execute) + @licenses_for_select ||= template_dropdown_names(TemplateFinder.build(:licenses).execute) end def ref_project @ref_project ||= @target_project || @project end - def dropdown_names(items) + def template_dropdown_names(items) grouped = items.group_by(&:category) categories = grouped.keys @@ -175,18 +175,18 @@ module BlobHelper end end end - private :dropdown_names + private :template_dropdown_names def gitignore_names - @gitignore_names ||= dropdown_names(TemplateFinder.new(:gitignores).execute) + @gitignore_names ||= template_dropdown_names(TemplateFinder.build(:gitignores).execute) end def gitlab_ci_ymls - @gitlab_ci_ymls ||= dropdown_names(TemplateFinder.new(:gitlab_ci_ymls).execute) + @gitlab_ci_ymls ||= template_dropdown_names(TemplateFinder.build(:gitlab_ci_ymls).execute) end def dockerfile_names - @dockerfile_names ||= dropdown_names(TemplateFinder.new(:dockerfiles).execute) + @dockerfile_names ||= template_dropdown_names(TemplateFinder.build(:dockerfiles).execute) end def blob_editor_paths |