From cd04e84e2c2e1c0777a0dc089462a76c2921ab94 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 42d468b..08468f2 100644 --- a/lib/carrierwave/storage/azure.rb +++ b/lib/carrierwave/storage/azure.rb @@ -18,7 +18,7 @@ def connection uploader.azure_credentials.map do |key, val| ::Azure.config.send("#{key}=", val) end unless uploader.azure_credentials.nil? - ::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