class ActiveStorage::Service::CloudinaryService
def url(key, filename: nil, content_type: '', **options)
def url(key, filename: nil, content_type: '', **options) key = find_blob_or_use_key(key) instrument :url, key: key do |payload| url = Cloudinary::Utils.cloudinary_url( full_public_id_internal(key, options), resource_type: resource_type(nil, key, content_type), format: ext_for_file(key, filename, content_type), **@options.merge(options.symbolize_keys) ) payload[:url] = url url end end