remove carrierwave/processing/mime_type for new version

This commit is contained in:
邱博亞 2024-03-16 15:36:36 +08:00
parent ff79891c85
commit 5b5d4ea538
2 changed files with 0 additions and 7 deletions

View File

@ -1,12 +1,7 @@
# encoding: utf-8 # encoding: utf-8
require 'carrierwave/processing/mime_types'
class ColonHeadImagesUploader1 < CarrierWave::Uploader::Base class ColonHeadImagesUploader1 < CarrierWave::Uploader::Base
include CarrierWave::MimeTypes
process :set_content_type
# Include RMagick or ImageScience support: # Include RMagick or ImageScience support:
# include CarrierWave::RMagick # include CarrierWave::RMagick
# include CarrierWave::ImageScience # include CarrierWave::ImageScience

View File

@ -1,9 +1,7 @@
# encoding: utf-8 # encoding: utf-8
class ColoncancerPredictMappingFile1 class ColoncancerPredictMappingFile1
require 'carrierwave/processing/mime_types'
include Mongoid::Document include Mongoid::Document
include Mongoid::Timestamps include Mongoid::Timestamps
include CarrierWave::MimeTypes
mount_uploader :temp_file, ColonHeadImagesUploader1 mount_uploader :temp_file, ColonHeadImagesUploader1
def file_identifier def file_identifier