From 62e085f07a20bda42a0aa788c2b9ae42dc97fee2 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:14 +0800 Subject: [PATCH] remove carrierwave/processing/mime_type for new version --- app/uploaders/banner_image_uploader.rb | 2 -- app/uploaders/banner_uploader.rb | 5 ----- 2 files changed, 7 deletions(-) diff --git a/app/uploaders/banner_image_uploader.rb b/app/uploaders/banner_image_uploader.rb index 6da9cd1..18870f7 100644 --- a/app/uploaders/banner_image_uploader.rb +++ b/app/uploaders/banner_image_uploader.rb @@ -1,5 +1,4 @@ # encoding: utf-8 -require 'carrierwave/processing/mime_types' class BannerImageUploader < CarrierWave::Uploader::Base @@ -7,7 +6,6 @@ class BannerImageUploader < CarrierWave::Uploader::Base # include CarrierWave::RMagick # include CarrierWave::MiniMagick include CarrierWave::MiniMagick - include CarrierWave::MimeTypes # Choose what kind of storage to use for this uploader: storage :file diff --git a/app/uploaders/banner_uploader.rb b/app/uploaders/banner_uploader.rb index 314b9cf..5201393 100644 --- a/app/uploaders/banner_uploader.rb +++ b/app/uploaders/banner_uploader.rb @@ -1,12 +1,7 @@ # encoding: utf-8 -require 'carrierwave/processing/mime_types' class BannerUploader < CarrierWave::Uploader::Base - include CarrierWave::MimeTypes - - process :set_content_type - # Include RMagick or ImageScience support: # include CarrierWave::RMagick # include CarrierWave::ImageScience