summaryrefslogtreecommitdiff
path: root/app/models/application_setting.rb
diff options
context:
space:
mode:
authorPatricio Cano <suprnova32@gmail.com>2016-06-29 14:30:27 -0500
committerPatricio Cano <suprnova32@gmail.com>2016-07-05 16:54:22 -0500
commitfbaabb3911c6fec25edc25bfffad94ae2a7c0e28 (patch)
treef8ec3e24dbff92c06e651e47a48c4ed47c277897 /app/models/application_setting.rb
parent120a1189bfa8b2afa7a8274c5617808f88f36101 (diff)
downloadgitlab-ce-fbaabb3911c6fec25edc25bfffad94ae2a7c0e28.tar.gz
Rename `enabled_git_access_protocols` to singular.
Diffstat (limited to 'app/models/application_setting.rb')
-rw-r--r--app/models/application_setting.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/models/application_setting.rb b/app/models/application_setting.rb
index 314e69fa8b6..7bf618d60b9 100644
--- a/app/models/application_setting.rb
+++ b/app/models/application_setting.rb
@@ -59,7 +59,7 @@ class ApplicationSetting < ActiveRecord::Base
presence: true,
inclusion: { in: ->(_object) { Gitlab.config.repositories.storages.keys } }
- validates :enabled_git_access_protocols,
+ validates :enabled_git_access_protocol,
inclusion: { in: %w(ssh http), allow_blank: true, allow_nil: true }
validates_each :restricted_visibility_levels do |record, attr, value|