summaryrefslogtreecommitdiff
path: root/app/models/project.rb
diff options
context:
space:
mode:
authorAlejandro Rodríguez <alejorro70@gmail.com>2016-06-29 23:35:00 -0400
committerAlejandro Rodríguez <alejorro70@gmail.com>2016-06-29 23:35:00 -0400
commit4a8a69837a9a14fca39bf089099b581602d983f2 (patch)
tree79c028de4c65c580a4f5d462a3ac4202dbcd0e72 /app/models/project.rb
parent20b9bb2029972c5f5334d6d684e0d60edb034c5f (diff)
downloadgitlab-ce-4a8a69837a9a14fca39bf089099b581602d983f2.tar.gz
Add Application Setting to configure default Repository Path for new projectsshards-config
Diffstat (limited to 'app/models/project.rb')
-rw-r--r--app/models/project.rb1
1 files changed, 1 insertions, 0 deletions
diff --git a/app/models/project.rb b/app/models/project.rb
index 2f6901e0e3e..6a950ee830d 100644
--- a/app/models/project.rb
+++ b/app/models/project.rb
@@ -24,6 +24,7 @@ class Project < ActiveRecord::Base
default_value_for :wiki_enabled, gitlab_config_features.wiki
default_value_for :snippets_enabled, gitlab_config_features.snippets
default_value_for :container_registry_enabled, gitlab_config_features.container_registry
+ default_value_for(:repository_storage) { current_application_settings.repository_storage }
default_value_for(:shared_runners_enabled) { current_application_settings.shared_runners_enabled }
after_create :ensure_dir_exist