From f98f1b700bb058db465d4b2c97ea4614bd04a437 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gr=C3=A9goire=20Willmann?= Date: Tue, 4 Dec 2018 10:35:35 +0100 Subject: [PATCH] Fix when uploading to Cloudinary --- lib/active_storage/service/cloudinary_service.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/active_storage/service/cloudinary_service.rb b/lib/active_storage/service/cloudinary_service.rb index f0e1f5e..7ccc63a 100644 --- a/lib/active_storage/service/cloudinary_service.rb +++ b/lib/active_storage/service/cloudinary_service.rb @@ -19,7 +19,7 @@ def initialize(cloud_name:, api_key:, api_secret:, **options) # Cloudinary.config_from_url(url) end - def upload(key, io, checksum: nil) + def upload(key, io, checksum: nil, **) instrument :upload, key: key, checksum: checksum do Cloudinary::Uploader.upload(io, public_id: key, resource_type: 'auto') end