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
-2
View File
@@ -29,8 +29,6 @@ class BubblesController < ApplicationController
def update
@bubble.update!(bubble_params)
@bubble.image.purge_later if params.key?(:remove_image)
redirect_to @bubble
end