lib/cloudinary/uploader.rb in cloudinary-1.0.47 vs lib/cloudinary/uploader.rb in cloudinary-1.0.48
- old
+ new
@@ -14,11 +14,11 @@
end.join("|")
end
def self.build_upload_params(options)
params = {:timestamp=>Time.now.to_i,
- :transformation => Cloudinary::Utils.generate_transformation_string(options),
+ :transformation => Cloudinary::Utils.generate_transformation_string(options.clone),
:public_id=> options[:public_id],
:callback=> options[:callback],
:format=>options[:format],
:type=>options[:type],
:backup=>options[:backup],
@@ -121,11 +121,11 @@
:timestamp=>Time.now.to_i,
:tag=>tag,
:format=>options[:format],
:async=>options[:async],
:notification_url=>options[:notification_url],
- :transformation => Cloudinary::Utils.generate_transformation_string(options)
+ :transformation => Cloudinary::Utils.generate_transformation_string(options.clone)
}
end
end
def self.explode(public_id, options={})
@@ -134,10 +134,10 @@
:timestamp=>Time.now.to_i,
:public_id=>public_id,
:type=>options[:type],
:format=>options[:format],
:notification_url=>options[:notification_url],
- :transformation => Cloudinary::Utils.generate_transformation_string(options)
+ :transformation => Cloudinary::Utils.generate_transformation_string(options.clone)
}
end
end
# options may include 'exclusive' (boolean) which causes clearing this tag from all other resources