lib/paperclip/storage/azure.rb in paperclip-azure-0.2.13 vs lib/paperclip/storage/azure.rb in paperclip-azure-0.2.14
- old
+ new
@@ -185,10 +185,10 @@
(creds[env] || creds).symbolize_keys
end
def exists?(style = default_style)
if original_filename
- azure_object(style).nil?
+ !azure_object(style).nil?
else
false
end
rescue ::Azure::Core::Http::HTTPError => e
raise unless e.status_code == 404