-
Notifications
You must be signed in to change notification settings - Fork 194
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Delete underlying file/asset when parent edition is discarded
This rectifies the inconsistency in behaviour explained in the previous commits. Calling `Attachment#destroy` for each attachment on the edition triggers the `after_destroy` callback on `FileAttachment` which in turn will delete its `AttachmentData` and its underlying file and Asset Manager asset if no other attachments are still referring to the `AttachmentData`.
- Loading branch information
1 parent
d5fd7a3
commit 2c15aec
Showing
2 changed files
with
10 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters