summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJan Provaznik <jprovaznik@gitlab.com>2018-12-13 09:43:06 +0100
committerJan Provaznik <jprovaznik@gitlab.com>2018-12-13 09:43:06 +0100
commitfcdc7e423e9b692634935fbf9dc31741a853dd16 (patch)
tree56907c0f86833872afa6c514ca06d16e84fa6ce1
parent4d19a84b88ed4310f3772502fd040c24ba1d94e7 (diff)
downloadgitlab-ce-fast-destroy-global-flag.tar.gz
Use global feature flag for fast destroyfast-destroy-global-flag
Rolling out fast destroy feature is not ideal if this feature is scoped to a specific project/group because uploads are typically scoped to project or group, so we would have to enable this feature for a project which is going to be destroyed (which we don't know in front).
-rw-r--r--app/models/concerns/with_uploads.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/models/concerns/with_uploads.rb b/app/models/concerns/with_uploads.rb
index d79c0eae77e..1b8e75363cd 100644
--- a/app/models/concerns/with_uploads.rb
+++ b/app/models/concerns/with_uploads.rb
@@ -61,6 +61,6 @@ module WithUploads
end
def fast_destroy_enabled?
- Feature.enabled?(:fast_destroy_uploads, self)
+ Feature.enabled?(:fast_destroy_uploads)
end
end