README.md in activestorage-delayed-0.1.3 vs README.md in activestorage-delayed-0.1.4
- old
+ new
@@ -37,19 +37,19 @@
```ruby
class User < ApplicationRecord
include ActivestorageDelayed::DelayedConcern
- has_one_attached :photo, require: true, use_filename: true
+ has_one_attached :photo, required: true, use_filename: true
delayed_attach :photo
has_many_attached :certificates
delayed_attach :certificates
end
```
### `delayed_attach` accepts an optional hash with the following options:
-- `require`: If set to `true`, the `photo` or the `photo_tmp` will be required before saving.
+- `required`: If set to `true`, the `photo` or the `photo_tmp` will be required before saving.
- `use_filename`: If set to `true`, the image filename will be used as the name of uploaded file instead of the hash-key used by `activestorage`
### Examples to upload files in background
- Upload a single file
```ruby