lib/carrierwave/storage/fog.rb in carrierwave-1.1.0 vs lib/carrierwave/storage/fog.rb in carrierwave-1.2.0
- old
+ new
@@ -295,10 +295,10 @@
#
# === Returns
#
# [Boolean] true if file exists or false
def exists?
- !!directory.files.head(path)
+ !!file
end
##
# Write file to service
#