From 5b5d4ea538e14681416395185040270c02150d18 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=82=B1=E5=8D=9A=E4=BA=9E?= Date: Sat, 16 Mar 2024 15:36:36 +0800 Subject: [PATCH] remove carrierwave/processing/mime_type for new version --- app/models/colon_head_images_uploader1.rb | 5 ----- app/models/coloncancer_predict_mapping_file1.rb | 2 -- 2 files changed, 7 deletions(-) diff --git a/app/models/colon_head_images_uploader1.rb b/app/models/colon_head_images_uploader1.rb index 8716101..e17de20 100644 --- a/app/models/colon_head_images_uploader1.rb +++ b/app/models/colon_head_images_uploader1.rb @@ -1,12 +1,7 @@ # encoding: utf-8 -require 'carrierwave/processing/mime_types' class ColonHeadImagesUploader1 < CarrierWave::Uploader::Base - include CarrierWave::MimeTypes - - process :set_content_type - # Include RMagick or ImageScience support: # include CarrierWave::RMagick # include CarrierWave::ImageScience diff --git a/app/models/coloncancer_predict_mapping_file1.rb b/app/models/coloncancer_predict_mapping_file1.rb index 9d1c3bb..e373481 100644 --- a/app/models/coloncancer_predict_mapping_file1.rb +++ b/app/models/coloncancer_predict_mapping_file1.rb @@ -1,9 +1,7 @@ # encoding: utf-8 class ColoncancerPredictMappingFile1 - require 'carrierwave/processing/mime_types' include Mongoid::Document include Mongoid::Timestamps - include CarrierWave::MimeTypes mount_uploader :temp_file, ColonHeadImagesUploader1 def file_identifier