diff options
author | Nick Thomas <nick@gitlab.com> | 2017-08-28 21:58:36 +0100 |
---|---|---|
committer | Nick Thomas <nick@gitlab.com> | 2017-08-30 20:50:44 +0100 |
commit | eb05bdc6f589f6f0713df12582eb9f18fc4022b3 (patch) | |
tree | 2a975a959d0ad419362f7b04d0329581af2bc366 /lib/api/settings.rb | |
parent | b84ca08e351fc9238bef4e6b4bf74158d25d4f1d (diff) | |
download | gitlab-ce-eb05bdc6f589f6f0713df12582eb9f18fc4022b3.tar.gz |
Move the key restriction validation to its own class
Diffstat (limited to 'lib/api/settings.rb')
-rw-r--r-- | lib/api/settings.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/api/settings.rb b/lib/api/settings.rb index 01123e45ee0..851b226e9e5 100644 --- a/lib/api/settings.rb +++ b/lib/api/settings.rb @@ -125,7 +125,7 @@ module API ApplicationSetting::SUPPORTED_KEY_TYPES.each do |type| optional :"#{type}_key_restriction", type: Integer, - values: ApplicationSetting.supported_key_restrictions(type), + values: KeyRestrictionValidator.supported_key_restrictions(type), desc: "Restrictions on the complexity of uploaded #{type.upcase} keys. A value of #{ApplicationSetting::FORBIDDEN_KEY_VALUE} disables all #{type.upcase} keys." end |