summaryrefslogtreecommitdiff
path: root/app/controllers/groups/avatars_controller.rb
blob: 38071410f404a12b4b40ace7b181f6a5b12bb0fd (plain)
1
2
3
4
5
6
7
8
9
10
11
12
class Groups::AvatarsController < ApplicationController
  layout "profile"

  def destroy
    @group = Group.find_by(path: params[:group_id])
    @group.remove_avatar!

    @group.save

    redirect_to edit_group_path(@group)
  end
end