diff options
author | Nick Thomas <nick@gitlab.com> | 2018-01-31 20:53:09 +0300 |
---|---|---|
committer | Nick Thomas <nick@gitlab.com> | 2018-01-31 20:55:44 +0300 |
commit | 27863b10d110e38b0ae7bfd1fefc0cc32646b748 (patch) | |
tree | 88b88e7909d302902b39c926c0f098a21c78dbb8 /app/helpers/application_settings_helper.rb | |
parent | 08e013431acb5238b4806260c4b9c304837097a3 (diff) |
Refactor repository_storages_options_for_select
Diffstat (limited to 'app/helpers/application_settings_helper.rb')
-rw-r--r-- | app/helpers/application_settings_helper.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/app/helpers/application_settings_helper.rb b/app/helpers/application_settings_helper.rb index 8ef561d90e6..e91e1d29d64 100644 --- a/app/helpers/application_settings_helper.rb +++ b/app/helpers/application_settings_helper.rb @@ -96,12 +96,12 @@ module ApplicationSettingsHelper ] end - def repository_storages_options_for_select + def repository_storages_options_for_select(selected) options = Gitlab.config.repositories.storages.map do |name, storage| ["#{name} - #{storage['path']}", name] end - options_for_select(options, @application_setting.repository_storages) + options_for_select(options, selected) end def sidekiq_queue_options_for_select |