blob: ad2c20b42dbc7d1c2d25a87617c71fb7319b6359 (
plain)
1
2
3
4
5
6
7
8
9
10
|
class Groups::AvatarsController < Groups::ApplicationController
before_action :authorize_admin_group!
def destroy
@group.remove_avatar!
@group.save
redirect_to edit_group_path(@group)
end
end
|