blob: 6aa64222f7789601cfbfbca55ed02ee5b69d8cb1 (
plain)
1
2
3
4
5
6
7
8
9
10
|
class Groups::AvatarsController < ApplicationController
def destroy
@group = Group.find_by(path: params[:group_id])
@group.remove_avatar!
@group.save
redirect_to edit_group_path(@group)
end
end
|