diff --git a/app/controllers/spree/admin/images_controller.rb b/app/controllers/spree/admin/images_controller.rb index 2a46ebec92..168f01466d 100644 --- a/app/controllers/spree/admin/images_controller.rb +++ b/app/controllers/spree/admin/images_controller.rb @@ -34,6 +34,12 @@ module Spree def destroy_before @viewable = @image.viewable end + + def permitted_resource_params + params.require(:image).permit( + :attachment, :viewable_id, :alt + ) + end end end end