From 827a62eb5e591e2b6fe307dc09378325f3c6d627 Mon Sep 17 00:00:00 2001 From: phil-l-brockwell Date: Wed, 20 Nov 2024 10:36:07 +0000 Subject: [PATCH] test --- app/uploaders/file_uploader.rb | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/app/uploaders/file_uploader.rb b/app/uploaders/file_uploader.rb index 0ac94f3fe..0c5120904 100644 --- a/app/uploaders/file_uploader.rb +++ b/app/uploaders/file_uploader.rb @@ -26,7 +26,8 @@ def filename end def fog_credentials - if fog_directory.include?("clean") + # if fog_directory.include?("clean") + if model.respond_to?(:clean?) && model.clean? clean_bucket_credentials else tmp_bucket_credentials