summaryrefslogtreecommitdiff
path: root/app/models/uploads
diff options
context:
space:
mode:
authorJan Provaznik <jprovaznik@gitlab.com>2018-12-04 20:48:21 +0100
committerJan Provaznik <jprovaznik@gitlab.com>2018-12-06 22:00:19 +0100
commit9ccf8d032ff82841cdfe96e2abe4b1d317058244 (patch)
tree979a29a1ed7bc6cab4efb578d2b34daafe70f38e /app/models/uploads
parent239fdc78b1ced1861cdcf00b8927963e30ef2095 (diff)
downloadgitlab-ce-9ccf8d032ff82841cdfe96e2abe4b1d317058244.tar.gz
Enabled feature flag for fast deletions
Fast destroy is used only if the feature flag is enabled, otherwise uploads are still deleted using carrier wave. It's disabled by default.
Diffstat (limited to 'app/models/uploads')
-rw-r--r--app/models/uploads/local.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/models/uploads/local.rb b/app/models/uploads/local.rb
index ffbf840a9d2..2901c33c359 100644
--- a/app/models/uploads/local.rb
+++ b/app/models/uploads/local.rb
@@ -3,7 +3,7 @@
module Uploads
class Local < Base
def keys(relation)
- relation.includes(:model).find_each.map {|u| u.absolute_path }
+ relation.includes(:model).find_each.map(&:absolute_path)
end
def delete_keys(keys)