diff options
author | Bob Van Landuyt <bob@gitlab.com> | 2017-04-12 11:28:23 +0200 |
---|---|---|
committer | Bob Van Landuyt <bob@gitlab.com> | 2017-05-01 11:14:24 +0200 |
commit | bccf8d86c57a141aeb60d96bc3139fe2b5dc9240 (patch) | |
tree | 8d9dadad95c30bef1c9f261f7804721d2198056f /app/models/project.rb | |
parent | 3143a5d2602de521b432231d701aedcc2844c088 (diff) | |
download | gitlab-ce-bccf8d86c57a141aeb60d96bc3139fe2b5dc9240.tar.gz |
Rename `NamespaceValidator` to `DynamicPathValidator`
This reflects better that it validates paths instead of a namespace model
Diffstat (limited to 'app/models/project.rb')
-rw-r--r-- | app/models/project.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/models/project.rb b/app/models/project.rb index 0ed4b4fddd6..9ebb9638ca4 100644 --- a/app/models/project.rb +++ b/app/models/project.rb @@ -196,7 +196,7 @@ class Project < ActiveRecord::Base message: Gitlab::Regex.project_name_regex_message } validates :path, presence: true, - namespace: true, + dynamic_path: true, length: { maximum: 255 }, format: { with: Gitlab::Regex.project_path_regex, message: Gitlab::Regex.project_path_regex_message }, |