README.md in s3_relay-0.0.2 vs README.md in s3_relay-0.0.3
- old
+ new
@@ -1,7 +1,10 @@
# s3_relay
+[](http://badge.fury.io/rb/s3_relay)
+[](https://codeclimate.com/github/kjohnston/s3_relay)
+
Enables direct file uploads to Amazon S3 and provides a flexible pattern for
your Rails app to asynchronously ingest the files.
## Overview
@@ -30,12 +33,10 @@
* Files can be uploaded before or after your parent object has been saved.
* File upload fields can be placed inside or outside of your parent object's
form.
* File uploads display completion progress.
* Boilerplate styling can be used or easily replaced.
-* All uploads are set to private by default, however support for other ACLs
-is in the plans.
* All uploads are marked for [Server-Side Encryption by AWS](http://docs.aws.amazon.com/AmazonS3/latest/dev/UsingEncryption.html) so that they are encrypted upon
write to disk. S3 then decrypts and streams the files as they are downloaded.
* Models can have multiple types of uploads and specify for each if only one
file is permitted or if multiple are.
* Multiple files can upload concurrently to S3.
@@ -152,10 +153,10 @@
def self.perform(product_id)
@product = Product.find(id)
@product.photo_uploads.pending.each do |upload|
@product.photos.create(remote_file_url: upload.private_url)
- upload.mark_processed!
+ upload.mark_imported!
end
end
end
```