summaryrefslogtreecommitdiff
path: root/config
diff options
context:
space:
mode:
authorDouwe Maan <douwe@gitlab.com>2018-04-13 08:16:39 +0000
committerDouwe Maan <douwe@gitlab.com>2018-04-13 08:16:39 +0000
commitac149be040009eff8847a1078031d92c5afc27d8 (patch)
tree572394bee55c1da858010cedb7cdcda319fbb1bb /config
parenta45729c8a7b959d03b021bdc5a15ed0219e9a6ab (diff)
parenta752c56ca82d6f0fdee340f5d494347a4aa90072 (diff)
downloadgitlab-ce-ac149be040009eff8847a1078031d92c5afc27d8.tar.gz
Merge branch 'zj-storage-path-deprecation' into 'master'
Deprecate legacy disk paths See merge request gitlab-org/gitlab-ce!18332
Diffstat (limited to 'config')
-rw-r--r--config/initializers/deprecations.rb5
1 files changed, 5 insertions, 0 deletions
diff --git a/config/initializers/deprecations.rb b/config/initializers/deprecations.rb
new file mode 100644
index 00000000000..add744accee
--- /dev/null
+++ b/config/initializers/deprecations.rb
@@ -0,0 +1,5 @@
+deprecator = ActiveSupport::Deprecation.new('11.0', 'GitLab')
+
+if Gitlab.inc_controlled? || Rails.env.development?
+ ActiveSupport::Deprecation.deprecate_methods(Gitlab::GitalyClient::StorageSettings, :legacy_disk_path, deprecator: deprecator)
+end