From 686ae1bc51ba0627c844f13c8b8e7058efd968ca Mon Sep 17 00:00:00 2001 From: Adi Widyawan Date: Thu, 5 Nov 2015 13:47:57 +0700 Subject: [PATCH] Include fixes from PR #7 + rename typo File.exists? --- lib/carrierwave/storage/azure.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/carrierwave/storage/azure.rb b/lib/carrierwave/storage/azure.rb index 0a5353d..5c32f6f 100644 --- a/lib/carrierwave/storage/azure.rb +++ b/lib/carrierwave/storage/azure.rb @@ -18,7 +18,7 @@ def connection %i(storage_account_name storage_access_key storage_blob_host).each do |key| ::Azure.config.send("#{key}=", uploader.send("azure_#{key}")) end - ::Azure::BlobService.new + ::Azure::Blob::BlobService.new end end @@ -60,7 +60,7 @@ def content_type=(new_content_type) @content_type = new_content_type end - def exitst? + def exists? blob.nil? end