lib/storage/strategies/s3.rb in storage-0.3.1 vs lib/storage/strategies/s3.rb in storage-0.3.2

- old
+ new

@@ -30,12 +30,9 @@ object = find_object(file, options) object.public_url || object.url(expires) end def store(file, options = {}) - object = find_object(file, options) rescue nil - fail FileAlreadyExistsError if object - bucket = find_bucket_or_create(options.fetch(:bucket)) file = File.open(file, "rb") unless file.respond_to?(:read) && !file.kind_of?(Pathname) create_object(bucket, file, options) end