diff options
author | Bob Van Landuyt <bob@vanlanduyt.co> | 2019-06-24 18:15:03 +0200 |
---|---|---|
committer | Bob Van Landuyt <bob@vanlanduyt.co> | 2019-07-09 18:09:45 +0200 |
commit | f138acb9866fa86f16e1db14c23e48c2e9f2b38b (patch) | |
tree | 4cd1f49c4227775b47a68de597eee51dadecf3a7 /app/models | |
parent | 1de47ee373650f197c1e4c558946dd6d8149e7e5 (diff) | |
download | gitlab-ce-f138acb9866fa86f16e1db14c23e48c2e9f2b38b.tar.gz |
Lesser Namespace#name validations
Since we use `Namespace#path` to build routes and URLs we can lessen
the restrictions on `Namespace#name` so it can accomodate a user's name.
Diffstat (limited to 'app/models')
-rw-r--r-- | app/models/namespace.rb | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/app/models/namespace.rb b/app/models/namespace.rb index af50293a179..1d95590bac9 100644 --- a/app/models/namespace.rb +++ b/app/models/namespace.rb @@ -41,8 +41,7 @@ class Namespace < ApplicationRecord validates :owner, presence: true, unless: ->(n) { n.type == "Group" } validates :name, presence: true, - length: { maximum: 255 }, - namespace_name: true + length: { maximum: 255 } validates :description, length: { maximum: 255 } validates :path, |