lib/cloudinary/uploader.rb in cloudinary-1.26.0 vs lib/cloudinary/uploader.rb in cloudinary-1.27.0
- old
+ new
@@ -45,10 +45,11 @@
:folder => options[:folder],
:format => options[:format],
:filename_override => options[:filename_override],
:headers => build_custom_headers(options[:headers]),
:image_metadata => Cloudinary::Utils.as_safe_bool(options[:image_metadata]),
+ :media_metadata => Cloudinary::Utils.as_safe_bool(options[:media_metadata]),
:invalidate => Cloudinary::Utils.as_safe_bool(options[:invalidate]),
:moderation => options[:moderation],
:notification_url => options[:notification_url],
:ocr => options[:ocr],
:overwrite => Cloudinary::Utils.as_safe_bool(options[:overwrite]),
@@ -60,9 +61,10 @@
:quality_override => options[:quality_override],
:raw_convert => options[:raw_convert],
:responsive_breakpoints => Cloudinary::Utils.generate_responsive_breakpoints_string(options[:responsive_breakpoints]),
:return_delete_token => Cloudinary::Utils.as_safe_bool(options[:return_delete_token]),
:similarity_search => options[:similarity_search],
+ :visual_search => Cloudinary::Utils.as_safe_bool(options[:visual_search]),
:tags => options[:tags] && Cloudinary::Utils.build_array(options[:tags]).join(","),
:timestamp => (options[:timestamp] || Time.now.to_i),
:transformation => Cloudinary::Utils.generate_transformation_string(options.clone),
:type => options[:type],
:unique_filename => Cloudinary::Utils.as_safe_bool(options[:unique_filename]),