Remove bubble images independently

This commit is contained in:
Jeffrey Hardy
2024-09-13 19:14:27 -04:00
parent 87cd9348f7
commit bd2aa802d9
5 changed files with 24 additions and 17 deletions
@@ -0,0 +1,8 @@
class Bubbles::ImagesController < ApplicationController
include BubbleScoped
def destroy
@bubble.image.purge_later
redirect_to @bubble
end
end