Remove avatars

This commit is contained in:
Jason Zimdars
2024-12-18 16:24:39 -06:00
parent 295d8ce088
commit 66640bbac0
3 changed files with 29 additions and 6 deletions
@@ -13,6 +13,11 @@ class Users::AvatarsController < ApplicationController
end
end
def destroy
@user.avatar.destroy
redirect_to user_path(@user)
end
private
def set_user
@user = Current.account.users.find(params[:user_id])