From 263717d70c526fb3272f802120669a4cb85c5bf5 Mon Sep 17 00:00:00 2001 From: Kamil Trzcinski Date: Tue, 19 Sep 2017 16:34:10 +0200 Subject: Do not perform hard check (presence of file on storage) Instead perform soft check (the column set to indicate that file does exist) --- app/controllers/projects/uploads_controller.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'app/controllers/projects/uploads_controller.rb') diff --git a/app/controllers/projects/uploads_controller.rb b/app/controllers/projects/uploads_controller.rb index 6966a7c5fee..4d2fb17a19b 100644 --- a/app/controllers/projects/uploads_controller.rb +++ b/app/controllers/projects/uploads_controller.rb @@ -28,7 +28,7 @@ class Projects::UploadsController < Projects::ApplicationController end def image_or_video? - uploader && uploader.file.exists? && uploader.image_or_video? + uploader && uploader.exists? && uploader.image_or_video? end def uploader_class -- cgit v1.2.1