• Jan Provaznik's avatar
    Use FastDestroy for deleting uploads · 9b1319c8
    Jan Provaznik authored
    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.
    9b1319c8
fast_destroy_all.rb 3.07 KB