lib/cloudinary/carrier_wave/storage.rb in cloudinary-1.0.31 vs lib/cloudinary/carrier_wave/storage.rb in cloudinary-1.0.32
- old
+ new
@@ -1,8 +1,8 @@
class Cloudinary::CarrierWave::Storage < ::CarrierWave::Storage::Abstract
def store!(file)
return if !uploader.enable_processing
- if uploader.class.version_names.blank?
+ if uploader.is_main_uploader?
case file
when Cloudinary::CarrierWave::PreloadedCloudinaryFile
return store_cloudinary_version(file.version)
when Cloudinary::CarrierWave::CloudinaryFile
return nil # Nothing to do