lib/cloudinary/carrier_wave/storage.rb in cloudinary-1.0.16 vs lib/cloudinary/carrier_wave/storage.rb in cloudinary-1.0.17
- old
+ new
@@ -6,9 +6,10 @@
# This is the toplevel, need to upload the actual file.
params = uploader.transformation.dup
params[:return_error] = true
params[:format] = uploader.format
params[:public_id] = uploader.my_public_id
+ uploader.versions.values.each(&:tags) # Validate no tags in versions
params[:tags] = uploader.tags if uploader.tags
eager_versions = uploader.versions.values.select(&:eager)
params[:eager] = eager_versions.map{|version| [version.transformation, version.format]} if eager_versions.length > 0
data = nil