lib/cloudinary/uploader.rb in cloudinary-1.5.2 vs lib/cloudinary/uploader.rb in cloudinary-1.6.0

- old
+ new

@@ -16,10 +16,11 @@ options.keys.each { |key| options[key.to_sym] = options.delete(key) if key.is_a?(String) } params = { :access_mode => options[:access_mode], :allowed_formats => Cloudinary::Utils.build_array(options[:allowed_formats]).join(","), + :async => Cloudinary::Utils.as_safe_bool(options[:async]), :auto_tagging => options[:auto_tagging] && options[:auto_tagging].to_f, :background_removal => options[:background_removal], :backup => Cloudinary::Utils.as_safe_bool(options[:backup]), :callback => options[:callback], :categorization => options[:categorization], @@ -140,9 +141,10 @@ :timestamp => (options[:timestamp] || Time.now.to_i), :type => options[:type], :overwrite => Cloudinary::Utils.as_safe_bool(options[:overwrite]), :from_public_id => from_public_id, :to_public_id => to_public_id, + :to_type => options[:to_type], :invalidate => Cloudinary::Utils.as_safe_bool(options[:invalidate]) } end end