
Dmitriy
Joined
10 Experience
0 Lessons Completed
0 Questions Solved
Activity
Is it working properly?
@space_image = ActiveStorage::Blob.find_signed(params[:id])
@space_image.purge_later
I've found this way doesn't work correctly — the image still connected (.attached? = true)
One of the solutions can be:
@space_image.attachments.first.purge