remove carrierwave/processing/mime_type for new version
This commit is contained in:
parent
924c09a085
commit
12ded1ffe1
|
@ -1,12 +1,7 @@
|
||||||
# encoding: utf-8
|
# encoding: utf-8
|
||||||
require 'carrierwave/processing/mime_types'
|
|
||||||
|
|
||||||
class ColonHeadImagesUploader2 < CarrierWave::Uploader::Base
|
class ColonHeadImagesUploader2 < 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
|
||||||
|
|
|
@ -1,9 +1,7 @@
|
||||||
# encoding: utf-8
|
# encoding: utf-8
|
||||||
class ColoncancerPredictMappingFile2
|
class ColoncancerPredictMappingFile2
|
||||||
require 'carrierwave/processing/mime_types'
|
|
||||||
include Mongoid::Document
|
include Mongoid::Document
|
||||||
include Mongoid::Timestamps
|
include Mongoid::Timestamps
|
||||||
include CarrierWave::MimeTypes
|
|
||||||
mount_uploader :temp_file, ColonHeadImagesUploader2
|
mount_uploader :temp_file, ColonHeadImagesUploader2
|
||||||
|
|
||||||
def file_identifier
|
def file_identifier
|
||||||
|
|
Loading…
Reference in New Issue