lib/cloudinary/carrier_wave/storage.rb in cloudinary-1.0.80 vs lib/cloudinary/carrier_wave/storage.rb in cloudinary-1.0.81
- old
+ new
@@ -33,10 +33,9 @@
eager_versions = uploader.versions.values.select(&:eager)
params[:eager] = eager_versions.map{|version| [version.transformation, version.format]} if eager_versions.length > 0
params[:type]=uploader.class.storage_type
params[:resource_type] ||= :auto
-
uploader.metadata = Cloudinary::Uploader.upload(data, params)
if uploader.metadata["error"]
raise Cloudinary::CarrierWave::UploadError.new(uploader.metadata["error"]["message"], uploader.metadata["error"]["http_code"])
end