From e03e27dc17619fb11def05a0955209d4468d901f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=82=B1=E5=8D=9A=E4=BA=9E?= Date: Mon, 18 Mar 2024 21:21:33 +0800 Subject: [PATCH] remove carrierwave/processing/mime_type for new version --- app/models/cancer_predict_mapping_file.rb | 2 -- app/models/head_images_uploader.rb | 5 ----- 2 files changed, 7 deletions(-) diff --git a/app/models/cancer_predict_mapping_file.rb b/app/models/cancer_predict_mapping_file.rb index 563870c..8cdaa27 100644 --- a/app/models/cancer_predict_mapping_file.rb +++ b/app/models/cancer_predict_mapping_file.rb @@ -1,9 +1,7 @@ # encoding: utf-8 class CancerPredictMappingFile - require 'carrierwave/processing/mime_types' include Mongoid::Document include Mongoid::Timestamps - include CarrierWave::MimeTypes mount_uploader :temp_file, HeadImagesUploader def file_identifier diff --git a/app/models/head_images_uploader.rb b/app/models/head_images_uploader.rb index c79e018..cc57d71 100644 --- a/app/models/head_images_uploader.rb +++ b/app/models/head_images_uploader.rb @@ -1,12 +1,7 @@ # encoding: utf-8 -require 'carrierwave/processing/mime_types' class HeadImagesUploader < CarrierWave::Uploader::Base - include CarrierWave::MimeTypes - - process :set_content_type - # Include RMagick or ImageScience support: # include CarrierWave::RMagick # include CarrierWave::ImageScience