diff options
author | Gabriel Mazetto <brodock@gmail.com> | 2017-08-01 08:44:25 +0300 |
---|---|---|
committer | Gabriel Mazetto <brodock@gmail.com> | 2017-08-01 08:44:25 +0300 |
commit | 597e619080c393daa765bf6e5de74f60121d1f0e (patch) | |
tree | 3a2b53e966fee7b3fa7ff0c3d8345eb91ee5fbfa /app | |
parent | 07b574b41cb0ff4518895ea4e6c719e453fdc4e3 (diff) |
Rename ensure_dir_exist -> ensure_storage_path_exist
Diffstat (limited to 'app')
-rw-r--r-- | app/models/concerns/storage/legacy_project.rb | 2 | ||||
-rw-r--r-- | app/models/project.rb | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/app/models/concerns/storage/legacy_project.rb b/app/models/concerns/storage/legacy_project.rb index b537f40548e..815db712285 100644 --- a/app/models/concerns/storage/legacy_project.rb +++ b/app/models/concerns/storage/legacy_project.rb @@ -6,7 +6,7 @@ module Storage full_path end - def ensure_dir_exist + def ensure_storage_path_exist gitlab_shell.add_namespace(repository_storage_path, namespace.full_path) end diff --git a/app/models/project.rb b/app/models/project.rb index dd025f5574d..d7e9e2ac973 100644 --- a/app/models/project.rb +++ b/app/models/project.rb @@ -44,7 +44,7 @@ class Project < ActiveRecord::Base default_value_for :snippets_enabled, gitlab_config_features.snippets default_value_for :only_allow_merge_if_all_discussions_are_resolved, false - after_create :ensure_dir_exist + after_create :ensure_storage_path_exist after_create :create_project_feature, unless: :project_feature after_save :update_project_statistics, if: :namespace_id_changed? @@ -69,7 +69,7 @@ class Project < ActiveRecord::Base # Legacy Storage specific hooks - after_save :ensure_dir_exist, if: :namespace_id_changed? + after_save :ensure_storage_path_exist, if: :namespace_id_changed? acts_as_taggable |