summaryrefslogtreecommitdiff
path: root/app/models/uploads
Commit message (Collapse)AuthorAgeFilesLines
* Enabled feature flag for fast deletionsJan Provaznik2018-12-061-1/+1
| | | | | Fast destroy is used only if the feature flag is enabled, otherwise uploads are still deleted using carrier wave. It's disabled by default.
* Use FastDestroy for deleting uploadsJan Provaznik2018-12-063-0/+118
It gathers list of file paths to delete before destroying the parent object. Then after the parent_object is destroyed these paths are scheduled for deletion asynchronously. Carrierwave needed associated model for deleting upload file. To avoid this requirement, simple Fog/File layer is used directly for file deletion, this allows us to use just a simple list of paths.