lib/carrierwave-aliyun.rb in carrierwave-aliyun-0.5.1 vs lib/carrierwave-aliyun.rb in carrierwave-aliyun-0.7.0

- old
+ new

@@ -1,10 +1,10 @@ require 'carrierwave/storage/aliyun' +require 'carrierwave/storage/aliyun_file' +require 'carrierwave/aliyun/bucket' +require 'carrierwave/aliyun/version' require 'carrierwave/aliyun/configuration' -CarrierWave.configure do |config| - config.storage_engines.merge!({ aliyun: 'CarrierWave::Storage::Aliyun' }) -end CarrierWave::Uploader::Base.send(:include, CarrierWave::Aliyun::Configuration) if CarrierWave::VERSION <= '0.11.0' require 'carrierwave/processing/mime_types' CarrierWave::Uploader::Base.send(:include, CarrierWave::MimeTypes)