remove carrierwave/processing/mime_type for new version
This commit is contained in:
parent
3001b51332
commit
62e085f07a
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue