-
You can now have any name for attachments in
Model
. This also allows having multiple uploads per model. E.g. the following now works.processable :avatar, Attachment processable :image, Attachment
You will need
avatar_meta_data
andimage_meta_data
fields, now.
Many thanks to @mrbongiolo for implementing this.
- Require Dragonfly 1.0.12 or above and change internal API accordingly. Thanks @acaron for fixing that!
- Add
Task#delete!
which allows to delete files in task blocks.
- Introduce
Model::Writer
andModel::Reader
in case you don't likeModel#image
's fuzzy API.
Task#process!
(and the delegatedFile#process!
) now delete the original version of an attachment ifprocess!
is used to replace the latter.