summaryrefslogtreecommitdiff
path: root/app/models/project.rb
diff options
context:
space:
mode:
authorBob Van Landuyt <bob@gitlab.com>2017-04-12 11:28:23 +0200
committerBob Van Landuyt <bob@gitlab.com>2017-05-01 11:14:24 +0200
commitbccf8d86c57a141aeb60d96bc3139fe2b5dc9240 (patch)
tree8d9dadad95c30bef1c9f261f7804721d2198056f /app/models/project.rb
parent3143a5d2602de521b432231d701aedcc2844c088 (diff)
downloadgitlab-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.rb2
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 },