Closed bastengao closed 8 years ago
删掉 require 'carrierwave/processing/mime_types' 后不影响使用吗?
CarrierWave::Utilities::Deprecation.new "0.11.0", "CarrierWave::MimeTypes is deprecated and will be removed in the future, get the content_type from the SanitizedFile object directly."
asset_uploader.rb require 了 'carrierwave/processing/mime_types' 但是有没有在 AssetUploader 中 include
Carrierwave::MimeType
. https://github.com/Macrow/rails_kindeditor/blob/master/app/uploaders/kindeditor/asset_uploader.rb#L3CarrierWave 可以直接使用 uploader.content_type, 提交在这里。
我看唯一用到地方是 Assets model 里。
建议删掉
require 'carrierwave/processing/mime_types'
这行。