Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKamil Trzcinski <ayufan@ayufan.eu>2017-09-19 17:34:10 +0300
committerKamil Trzcinski <ayufan@ayufan.eu>2017-09-19 17:41:28 +0300
commit263717d70c526fb3272f802120669a4cb85c5bf5 (patch)
treefb30238770aa57896a3bc3d6c857089dfb456235 /app/uploaders/gitlab_uploader.rb
parent7e69f1889b1e7d86aee4faf01089a32eda35786c (diff)
Do not perform hard check (presence of file on storage)
Instead perform soft check (the column set to indicate that file does exist)
Diffstat (limited to 'app/uploaders/gitlab_uploader.rb')
-rw-r--r--app/uploaders/gitlab_uploader.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/uploaders/gitlab_uploader.rb b/app/uploaders/gitlab_uploader.rb
index 05a2091633a..7f72b3ce471 100644
--- a/app/uploaders/gitlab_uploader.rb
+++ b/app/uploaders/gitlab_uploader.rb
@@ -51,7 +51,7 @@ class GitlabUploader < CarrierWave::Uploader::Base
end
def exists?
- file.try(:exists?)
+ file.present?
end
# Override this if you don't want to save files by default to the Rails.root directory